Skip to content

Commit

Permalink
style: use power-assert
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 7, 2019
1 parent 6a1f943 commit 7001fca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/preoom/utilities/parseBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit 7001fca

Please sign in to comment.