We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a39eff commit 6c13e73Copy full SHA for 6c13e73
src/service.test.ts
@@ -68,8 +68,10 @@ await test('constructor', () => {
68
new Service(db)
69
if (Array.isArray(db.data['posts'])) {
70
const id = db.data['posts']?.at(1)?.['id']
71
- assert.ok(id instanceof String, 'id should be a string')
72
- assert.ok(id.length > 0, 'id should not be empty')
+ assert.ok(
+ typeof id === 'string' && id.length > 0,
73
+ `id should be a non empty string but was: ${String(id)}`,
74
+ )
75
}
76
})
77
0 commit comments