Rewrite tests for assert instead of mocha and chai

master
Raymonzut 5 years ago
parent d459e98db4
commit 31651a5d58
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 10
      client/test/me.js

@ -1,10 +1,4 @@
const assert = require('chai').assert const assert = require('assert').strict
const me = require('../src/me') const me = require('../src/me')
describe('me', () => { assert(me.age() > 0, 'age should return a positive number')
describe('age', () => {
it('should return a positive number', () => {
assert.isAbove(me.age(), 0)
})
})
})

Loading…
Cancel
Save