Skip to content

Commit 4c57eb7

Browse files
committed
fixes #86
1 parent 0db5bcd commit 4c57eb7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

spec/learnwords2/LWBoxOfQuestionsSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("BoxOfQuestions construction", function() {
2424

2525
expect(LW).toBeObject();
2626

27-
expect(LW.db.dbName).toBeString("learnWords");
27+
expect(LW.db.dbName).toBe("learnWords");
2828
expect(LW.db.numberOfWords()).toBeNumber(10);
2929

3030
});
@@ -55,7 +55,7 @@ describe("BoxOfQuestions construction", function() {
5555

5656
expect(LW).toBeObject();
5757

58-
expect(LW.db.dbName).toBeString("learnWords");
58+
expect(LW.db.dbName).toBe("learnWords");
5959
expect(LW.db.numberOfWords()).toBeNumber(10);
6060

6161
});

spec/learnwords2/LWdbSpec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ describe("Database LWdb", function() {
101101
expect(r._id).toBe(1);
102102

103103
expect(r).toHaveString("word");
104-
expect(r.word).toBeString("melon");
104+
expect(r.word).toBe("melon");
105105

106106
expect(r).toHaveString("translate");
107-
expect(r.translate).toBeString("melon");
107+
expect(r.translate).toBe("die Melone");
108108

109109
expect(r).toHaveNumber("step");
110110
expect(r.step).toBe(0);
@@ -159,7 +159,7 @@ describe("Database LWdb", function() {
159159
expect(r.length).toBe(this.db.numberOfWords());
160160

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

165165
});
@@ -207,11 +207,11 @@ describe("Database LWdb", function() {
207207

208208
expect(r[i]).toHaveString("word");
209209
expect(tmp).toHaveString("word");
210-
expect(r[i].word).toBeString(tmp.word);
210+
expect(r[i].word).toBe(tmp.word);
211211

212212
expect(r[i]).toHaveString("translate");
213213
expect(tmp).toHaveString("translate");
214-
expect(r[i].translate).toBeString(tmp.translate);
214+
expect(r[i].translate).toBe(tmp.translate);
215215

216216
expect(r[i]).toHaveNumber("_id");
217217
expect(tmp).toHaveNumber("_id");

0 commit comments

Comments
 (0)