ns-suitescript-mocks
Version:
Collection of mocks that can be used to improve unit-tests for SuiteScript 2.0.
25 lines (22 loc) • 705 B
JavaScript
/**
* Tests for a Netsuite format Module
*
*/
const fileUnderTest = require('../../N/currentRecord');
describe('Testing currentRecord module', () => {
it('Should return object with properies available in Netsuite\'s current 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);
});
});