diff --git a/test/preoom/utilities/parseBytes.js b/test/preoom/utilities/parseBytes.js index 9e72734..0c8a7d1 100644 --- a/test/preoom/utilities/parseBytes.js +++ b/test/preoom/utilities/parseBytes.js @@ -4,13 +4,13 @@ import test from 'ava'; import parseBytes from '../../../src/utilities/parseBytes'; test('parses abbreviated notations Ki, Mi, Gi', (t) => { - t.true(parseBytes('1Ki') === 1024); - t.true(parseBytes('1Mi') === 1048576); - t.true(parseBytes('1Gi') === 1073741824); + t.assert(parseBytes('1Ki') === 1024); + t.assert(parseBytes('1Mi') === 1048576); + t.assert(parseBytes('1Gi') === 1073741824); }); test('parses regular notations KiB, MiB, GiB', (t) => { - t.true(parseBytes('1Ki') === 1024); - t.true(parseBytes('1Mi') === 1048576); - t.true(parseBytes('1Gi') === 1073741824); + t.assert(parseBytes('1Ki') === 1024); + t.assert(parseBytes('1Mi') === 1048576); + t.assert(parseBytes('1Gi') === 1073741824); });