Skip to content

Commit

Permalink
activating "test isolation validation" and adding test to trigger it
Browse files Browse the repository at this point in the history
  • Loading branch information
tsagadar committed Jun 17, 2022
1 parent a92f827 commit 53a21dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ setApplication(Application.create(config.APP));

setup(QUnit.assert);

start();
start({
setupTestIsolationValidation: true
});
7 changes: 7 additions & 0 deletions tests/unit/models/rental-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'super-rentals/tests/helpers';
import { later } from '@ember/runloop';

module('Unit | Model | rental', function (hooks) {
setupTest(hooks);
Expand Down Expand Up @@ -37,4 +38,10 @@ module('Unit | Model | rental', function (hooks) {
rental.category = 'Estate';
assert.strictEqual(rental.type, 'Standalone');
});

test('checking test isolation validation', function (assert) {
assert.expect(1);
later(() => {}, 1000);
assert.ok(true);
});
});

0 comments on commit 53a21dc

Please sign in to comment.