Skip to content

Commit

Permalink
fix query count
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 8, 2016
1 parent a733725 commit 8166e61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/tests/app/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ describe('Database tests', function() {
$('button.btn-primary').click();

var queries = element.all(by.repeater('query in response.queries'));
expect(queries.count()).toEqual(1);
expect(queries.get(0).getText()).toMatch(/^ALTER TABLE foobar DROP content|CREATE TEMPORARY TABLE __temp__app_news AS SELECT id, title, date FROM app_news$/);
expect(queries.get(0).getText()).toMatch(/^ALTER TABLE foobar DROP content|CREATE TEMPORARY TABLE __temp__foobar AS SELECT id, name, date FROM foobar$/);

$('button.btn-danger').click();

Expand Down

0 comments on commit 8166e61

Please sign in to comment.