UNPKG

ns-suitescript-mocks

Version:

Collection of mocks that can be used to improve unit-tests for SuiteScript 2.0.

25 lines (22 loc) 683 B
/** * Tests for a Netsuite format Module * */ const fileUnderTest = require('../../N/record'); describe('Testing record module', () => { it('Should return object with properies available in Netsuite\'s record module ', () => { const expected = { attach: expect.any(Function), create: expect.any(Function), copy: expect.any(Function), delete: expect.any(Function), detach: expect.any(Function), get: expect.any(Function), load: expect.any(Function), submitFields: expect.any(Function), transform: expect.any(Function), Type: expect.any(Object), }; expect(fileUnderTest).toMatchObject(expected); }); });