Skip to content

Commit 677761f

Browse files
authored
fix: test
1 parent ec82fd2 commit 677761f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/debug-mode.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const fjs = require('..')
55

66
const Ajv = require('ajv').default
77
const Validator = require('../lib/validator')
8-
const Serializer = require('../lib/serializer')
98

109
function build (opts) {
1110
return fjs({
@@ -27,7 +26,7 @@ test('activate debug mode', t => {
2726
t.assert.ok(typeof debugMode === 'object')
2827
t.assert.ok(debugMode.ajv instanceof Ajv)
2928
t.assert.ok(debugMode.validator instanceof Validator)
30-
t.assert.ok(debugMode.serializer instanceof Serializer)
29+
t.assert.ok(typeof debugMode.serializer === 'object')
3130
t.assert.ok(typeof debugMode.code === 'string')
3231
})
3332

@@ -40,7 +39,7 @@ test('activate debug mode truthy', t => {
4039
t.assert.ok(typeof debugMode.code === 'string')
4140
t.assert.ok(debugMode.ajv instanceof Ajv)
4241
t.assert.ok(debugMode.validator instanceof Validator)
43-
t.assert.ok(debugMode.serializer instanceof Serializer)
42+
t.assert.ok(typeof debugMode.serializer === 'object')
4443
})
4544

4645
test('to string auto-consistent', t => {
@@ -50,7 +49,7 @@ test('to string auto-consistent', t => {
5049
t.assert.ok(typeof debugMode === 'object')
5150
t.assert.ok(typeof debugMode.code === 'string')
5251
t.assert.ok(debugMode.ajv instanceof Ajv)
53-
t.assert.ok(debugMode.serializer instanceof Serializer)
52+
t.assert.ok(typeof debugMode.serializer === 'object')
5453
t.assert.ok(debugMode.validator instanceof Validator)
5554

5655
const compiled = fjs.restore(debugMode)
@@ -79,7 +78,7 @@ test('to string auto-consistent with ajv', t => {
7978
t.assert.ok(typeof debugMode.code === 'string')
8079
t.assert.ok(debugMode.ajv instanceof Ajv)
8180
t.assert.ok(debugMode.validator instanceof Validator)
82-
t.assert.ok(debugMode.serializer instanceof Serializer)
81+
t.assert.ok(typeof debugMode.serializer === 'object')
8382

8483
const compiled = fjs.restore(debugMode)
8584
const tobe = JSON.stringify({ str: 'Foo' })

0 commit comments

Comments
 (0)