Skip to content

Commit 87bfa14

Browse files
Broccocironunes
authored andcommitted
fix(test): ignore favicon.ico file while running re-init unit test
1 parent b985a73 commit 87bfa14

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

tests/acceptance/init.spec.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,24 @@ describe('Acceptance: ng init', function() {
124124
});
125125

126126
it('init an already init\'d folder', function() {
127+
return ng([
128+
'init',
129+
'--skip-npm',
130+
'--skip-bower'
131+
])
132+
.then(function(){
133+
// ignore the favicon file for the the unit test since it breaks at ember-cli level
134+
// when trying to re-init
135+
Blueprint.ignoredFiles.push('favicon.ico');
136+
})
137+
.then(function() {
127138
return ng([
128-
'init',
129-
'--skip-npm',
130-
'--skip-bower'
131-
])
132-
.then(function() {
133-
return ng([
134-
'init',
135-
'--skip-npm',
136-
'--skip-bower'
137-
]);
138-
})
139-
.then(confirmBlueprinted);
139+
'init',
140+
'--skip-npm',
141+
'--skip-bower'
142+
]);
143+
})
144+
.then(confirmBlueprinted);
140145
});
141146

142147
it('init a single file', function() {

0 commit comments

Comments
 (0)