-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: test for app excluding mirage
- Loading branch information
1 parent
0bc26c2
commit 8cd7ee4
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test-projects/02-app-that-excludes-mirage/tests/acceptance/modules-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { test } from 'qunit'; | ||
import moduleForAcceptance from 'basic-app/tests/helpers/module-for-acceptance'; | ||
|
||
moduleForAcceptance('Acceptance | modules'); | ||
|
||
test('only 1 module (the no-op initializer) is included in the build', function(assert) { | ||
visit('/'); | ||
|
||
andThen(function() { | ||
assert.dom('[data-test-id="mirage-module-count"]').hasText('0'); | ||
assert.dom('[data-test-id="other-module-count"]').hasText('1'); | ||
}); | ||
}); |