Skip to content

Commit 419eb8d

Browse files
committed
modify test
1 parent b46282a commit 419eb8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/utilization/common.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ test('Utilization Common Components', async function (t) {
7070
// Should skip missing key 'bar' and only return valid 'foo'
7171
assert.deepEqual(common.getKeys({ foo: 'foo' }, ['foo', 'bar'], false), { foo: 'foo' })
7272

73-
// Should skip invalid 'bar' and only return valid 'foo'
74-
assert.deepEqual(common.getKeys({ foo: 'foo', bar: 'bar\0' }, ['foo', 'bar'], false), { foo: 'foo' })
73+
// Should skip invalid key 'bar' and only return valid 'foo'
74+
assert.deepEqual(common.getKeys({ foo: 'foo', bar: BIG }, ['foo', 'bar'], false), { foo: 'foo' })
7575

76-
// Should skip both keys if both are missing or invalid
76+
// Should skip both keys if both are missing
7777
assert.deepEqual(common.getKeys({ baz: 'baz' }, ['foo', 'bar'], false), {})
7878

79-
// Should skip key with value too large
80-
assert.deepEqual(common.getKeys({ foo: BIG, bar: 'bar' }, ['foo', 'bar'], false), { bar: 'bar' })
79+
// Should skip both keys if both are invalid
80+
assert.deepEqual(common.getKeys({ foo: BIG, bar: BIG }, ['foo', 'bar'], false), {})
8181
})
8282
})
8383

0 commit comments

Comments
 (0)