UNPKG

ns-suitescript-mocks

Version:

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

18 lines (15 loc) 454 B
/** * Tests for a Netsuite runtime Module * */ const fileUnderTest = require('../../N/runtime'); describe('Testing runtime module', () => { it('Should return object with properies available in Netsuite\'s runtime module ', () => { const expected = { envType: expect.any(String), getCurrentUser: expect.any(Function), getCurrentScript: expect.any(Function), }; expect(fileUnderTest).toMatchObject(expected); }); });