-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathutil-test-test.js
More file actions
39 lines (31 loc) · 1.14 KB
/
util-test-test.js
File metadata and controls
39 lines (31 loc) · 1.14 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
'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: util-test', function () {
setupTestHooks(this);
describe('in app', function () {
beforeEach(function () {
return emberNew();
});
it('util-test foo-bar', function () {
return emberGenerateDestroy(['util-test', 'foo-bar'], (_file) => {
expect(_file('tests/unit/utils/foo-bar-test.js')).to.equal(fixture('util-test/app.js'));
});
});
});
describe('in addon', function () {
beforeEach(function () {
return emberNew({ target: 'addon' });
});
it('util-test foo-bar', function () {
return emberGenerateDestroy(['util-test', 'foo-bar'], (_file) => {
expect(_file('tests/unit/utils/foo-bar-test.js')).to.equal(fixture('util-test/addon.js'));
});
});
});
});