Skip to content

Commit 4d6aad8

Browse files
committed
chore(tests): Update expected value for -0
Looks like a [recent release](https://github.com/substack/tape/releases/tag/v4.12.0) of Tape made changes around how +0/-0 is handled. It actually looks like the new behavior is more correct: `-0` now makes its way through the test, where previously it was converted to `+0`
1 parent c69a960 commit 4d6aad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/helper/fieldValue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports.tests.getArrayValue = function(test) {
2626
t.deepEqual(field.getArrayValue('foo'), ['foo'], 'string');
2727
t.deepEqual(field.getArrayValue(['foo','bar']), ['foo','bar'], 'array');
2828
t.deepEqual(field.getArrayValue(['']), [''], 'array with empty string');
29-
t.deepEqual(field.getArrayValue(-0), [0], 'number');
29+
t.deepEqual(field.getArrayValue(-0), [-0], 'number');
3030
t.deepEqual(field.getArrayValue(+0), [0], 'number');
3131
t.deepEqual(field.getArrayValue({foo: 'bar'}), [{foo: 'bar'}], '[*]');
3232
t.end();

0 commit comments

Comments
 (0)