Skip to content

Commit

Permalink
Merge 5b6bb15 into fc10a71
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Sep 21, 2019
2 parents fc10a71 + 5b6bb15 commit 558d029
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -89,13 +89,13 @@ describe('QuestRequestItems integration tests', () => {
describe('Editing existing', () => {
beforeEach(() => setup(false));

it('should correctly initialise', () => {
it('should correctly initialise', async(() => {
page.expectDiffQueryToBeShown();
page.expectDiffQueryToBeEmpty();
page.expectFullQueryToContain('DELETE FROM `quest_request_items` WHERE (`ID` = 1234);\n' +
'INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `CompletionText`, `VerifiedBuild`) VALUES\n' +
'(1234, 2, 3, \'4\', 0);');
});
}));

it('changing all properties and executing the query should correctly work', () => {
const expectedQuery = 'UPDATE `quest_request_items` SET ' +
Expand All @@ -110,7 +110,7 @@ describe('QuestRequestItems integration tests', () => {
expect(querySpy.calls.mostRecent().args[0]).toContain(expectedQuery);
});

it('changing values should correctly update the queries', () => {
it('changing values should correctly update the queries', async(() => {
page.setInputValueById('EmoteOnComplete', '11');
page.expectDiffQueryToContain(
'UPDATE `quest_request_items` SET `EmoteOnComplete` = 11 WHERE (`ID` = 1234);'
Expand All @@ -130,7 +130,7 @@ describe('QuestRequestItems integration tests', () => {
'INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `CompletionText`, `VerifiedBuild`) VALUES\n' +
'(1234, 11, 22, \'4\', 0);\n'
);
});
}));

it('changing a value via SingleValueSelector should correctly work', () => {
const field = 'EmoteOnComplete';
Expand Down

0 comments on commit 558d029

Please sign in to comment.