UNPKG

@gameroom/kit

Version:

Node kit for the Gameroom API

22 lines (18 loc) 392 B
const chai = require('chai') const { helpers: { getCount } } = require('../../') const should = chai.should() describe('getCount()', () => { it('should get unit count', async () => { let result, error try { result = await getCount() } catch (err) { error = err } should.not.exist(error) should.exist(result) result.should.be.a('number') }) })