From 31651a5d5858d2f6d38fcf64f9626448f776f91c Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Sun, 26 Apr 2020 14:57:17 +0200 Subject: [PATCH] Rewrite tests for assert instead of mocha and chai --- client/test/me.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/client/test/me.js b/client/test/me.js index ee2e66d..b0795f7 100644 --- a/client/test/me.js +++ b/client/test/me.js @@ -1,10 +1,4 @@ -const assert = require('chai').assert +const assert = require('assert').strict const me = require('../src/me') -describe('me', () => { - describe('age', () => { - it('should return a positive number', () => { - assert.isAbove(me.age(), 0) - }) - }) -}) +assert(me.age() > 0, 'age should return a positive number')