-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathinitializer-test-test.js
More file actions
43 lines (35 loc) · 1.22 KB
/
initializer-test-test.js
File metadata and controls
43 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
const fixture = require('../helpers/fixture');
describe('Blueprint: initializer-test', function () {
setupTestHooks(this);
describe('in app', function () {
beforeEach(function () {
return emberNew();
});
it('initializer-test foo', function () {
return emberGenerateDestroy(['initializer-test', 'foo'], (_file) => {
expect(_file('tests/unit/initializers/foo-test.js')).to.equal(
fixture('initializer-test/app.js')
);
});
});
});
describe('in addon', function () {
beforeEach(function () {
return emberNew({ target: 'addon' });
});
it('initializer-test foo', function () {
return emberGenerateDestroy(['initializer-test', 'foo'], (_file) => {
expect(_file('tests/unit/initializers/foo-test.js')).to.equal(
fixture('initializer-test/addon.js')
);
});
});
});
});