Skip to content

Commit

Permalink
fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
hhzl committed Dec 8, 2016
1 parent 0db5bcd commit 4c57eb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions spec/learnwords2/LWBoxOfQuestionsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("BoxOfQuestions construction", function() {

expect(LW).toBeObject();

expect(LW.db.dbName).toBeString("learnWords");
expect(LW.db.dbName).toBe("learnWords");
expect(LW.db.numberOfWords()).toBeNumber(10);

});
Expand Down Expand Up @@ -55,7 +55,7 @@ describe("BoxOfQuestions construction", function() {

expect(LW).toBeObject();

expect(LW.db.dbName).toBeString("learnWords");
expect(LW.db.dbName).toBe("learnWords");
expect(LW.db.numberOfWords()).toBeNumber(10);

});
Expand Down
10 changes: 5 additions & 5 deletions spec/learnwords2/LWdbSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ describe("Database LWdb", function() {
expect(r._id).toBe(1);

expect(r).toHaveString("word");
expect(r.word).toBeString("melon");
expect(r.word).toBe("melon");

expect(r).toHaveString("translate");
expect(r.translate).toBeString("melon");
expect(r.translate).toBe("die Melone");

expect(r).toHaveNumber("step");
expect(r.step).toBe(0);
Expand Down Expand Up @@ -159,7 +159,7 @@ describe("Database LWdb", function() {
expect(r.length).toBe(this.db.numberOfWords());

for(var i = 0; i < r.length; i++){
expect(r[i]).toBeString("LearnWords-wd-"+(i+1));
expect(r[i]).toBe("LearnWords-wd-"+(i+1));
}

});
Expand Down Expand Up @@ -207,11 +207,11 @@ describe("Database LWdb", function() {

expect(r[i]).toHaveString("word");
expect(tmp).toHaveString("word");
expect(r[i].word).toBeString(tmp.word);
expect(r[i].word).toBe(tmp.word);

expect(r[i]).toHaveString("translate");
expect(tmp).toHaveString("translate");
expect(r[i].translate).toBeString(tmp.translate);
expect(r[i].translate).toBe(tmp.translate);

expect(r[i]).toHaveNumber("_id");
expect(tmp).toHaveNumber("_id");
Expand Down

0 comments on commit 4c57eb7

Please sign in to comment.