-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): move workbox config from environment to ember-cli-build
BREAKING CHANGE: workbox config has been moved to ember-cli-build.js
- Loading branch information
1 parent
ba9de62
commit 44f8fdf
Showing
5 changed files
with
33 additions
and
7 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
|
||
module('Acceptance | Simple Acceptance Test', (hooks) => { | ||
setupApplicationTest(hooks); | ||
|
||
test('"workbox" configuration is not in environment config', async function(assert) { | ||
const config = this.owner.resolveRegistration('config:environment'); | ||
|
||
assert.notOk(config.workbox); | ||
}); | ||
|
||
test('"workbox" configuration is setted in "ember-cli-workbox" config object', async function(assert) { | ||
const config = this.owner.resolveRegistration('config:environment'); | ||
|
||
assert.equal(config['ember-cli-workbox'].swDest, 'sw.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