UNPKG

@gameroom/gameroom-kit

Version:

Node kit for the Gameroom API

24 lines (22 loc) 729 B
let chai = require('chai'), should = chai.should(), faker = require('faker'), { lib } = require('../../'), { Report_File } = lib; describe('Report_File', () => { describe('new Report_File()', () => { it('should create a new Report_File with default values', () => { const report_file = new Report_File(); should.exist(report_file); }); }); describe('new Report_File({})', () => { it('should create a new Report_File with provided values', () => { const key = faker.random.word(); const adjustments = [{ key }]; const report_file = new Report_File({ adjustments }); should.exist(report_file); report_file.adjustments[0].key.should.equal(key); }); }); });