UNPKG

@gameroom/gameroom-kit

Version:

Node kit for the Gameroom API

23 lines (21 loc) 650 B
let chai = require('chai'), should = chai.should(), faker = require('faker'), { lib } = require('../../'), { Properties } = lib; describe('Properties', () => { describe('new Properties()', () => { it('should create a new Properties with default values', () => { let properties = new Properties(); should.exist(properties); }); }); describe('new Properties({})', () => { it('should create a new Properties with provided values', () => { let key = faker.random.word(); let properties = new Properties({ key }); should.exist(properties); properties.key.should.equal(key); }); }); });