Skip to content

Commit 3f844d5

Browse files
committed
test: add new generated unit tests
1 parent d7ef800 commit 3f844d5

14 files changed

+14473
-286
lines changed

test/resources/unitTestUtils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ module.exports.checkUserHeader = function(createRequestMock, baseName, param) {
2525
expect(headers[baseName]).toEqual(param);
2626
};
2727

28+
module.exports.checkDefaultSuccessArgs = function(createRequestMock) {
29+
// get arg to getMissingParams
30+
const userParams = createRequestMock.mock.calls[0];
31+
expect(typeof userParams[0]).toEqual('object');
32+
expect(typeof userParams[1]).toEqual('function');
33+
};
34+
2835
module.exports.checkForEmptyObject = function(missingParamsMock) {
2936
// get arg to getMissingParams
3037
const userParams = missingParamsMock.mock.calls[0][0];

0 commit comments

Comments
 (0)