Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/util/sortArguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ const sortArguments = (reqArguments) => {
costs.push('paid');
break;
}

default: {
break;
}
}
});
let returnArgs = {};
Expand Down
7 changes: 7 additions & 0 deletions test/incomingParser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ describe('parsePayload()', function () {

expect(res.actionArguments).to.eql({ 'language': ['python'] });
});

it('should return nothing', async function () {
req.body.text = 'cats are awesome';
const res = await parsePayload(req);

expect(res.actionArguments).to.be.empty;
});
});

describe('when invoked with level as arguments', function () {
Expand Down