Skip to content

Commit

Permalink
#982: test method
Browse files Browse the repository at this point in the history
  • Loading branch information
phjulia committed Jun 29, 2023
1 parent 93d441b commit d20f384
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/type.query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,19 @@ describe('type: query', () => {
false,
'deploy with --execute should not have thrown an error'
);
// confirm created item
assert.deepEqual(
await testUtils.getActualJson('testNew_query', 'query'),
await testUtils.getExpectedJson('9999999', 'query', 'post'),
'returned metadata was not equal expected for insert query'
);
expect(file(testUtils.getActualFile('testNew_query', 'query', 'sql'))).to.equal(
file(testUtils.getExpectedFile('9999999', 'query', 'post', 'sql'))
);
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
11,
12,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down

0 comments on commit d20f384

Please sign in to comment.