From 7001fcae6a7e737c1d7b095137c37e8fc7f220f4 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 7 May 2019 13:16:43 +0100 Subject: [PATCH] style: use power-assert --- test/preoom/utilities/parseBytes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); });