Skip to content

Commit

Permalink
Merge pull request #5053 from ember-cli/test-fixes
Browse files Browse the repository at this point in the history
test  fixes
  • Loading branch information
stefanpenner committed Nov 10, 2015
2 parents c6915f6 + 705c559 commit caf7c16
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/dummy-project-outdated/package.json
Expand Up @@ -27,4 +27,4 @@
"express": "^4.1.1",
"glob": "^3.2.9"
}
}
}
1 change: 1 addition & 0 deletions tests/unit/models/addon-test.js
Expand Up @@ -83,6 +83,7 @@ describe('models/addon.js', function() {
var addonPath;
addon.addonJsFiles = function(_path) {
addonPath = _path;
return _path;
};

var root = path.join(fixturePath, 'with-styles');
Expand Down
17 changes: 13 additions & 4 deletions tests/unit/models/watcher-test.js
Expand Up @@ -115,7 +115,9 @@ describe('Watcher', function() {
message: 'buildFailed'
}));

var outs = ui.output.split(EOL);
expect(ui.output).to.equal('');

var outs = ui.errors.split(EOL);

expect(outs[0]).to.equal(chalk.red('File: someFile'));
expect(outs[1]).to.equal(chalk.red('buildFailed'));
Expand All @@ -128,7 +130,9 @@ describe('Watcher', function() {
message: 'buildFailed'
}));

var outs = ui.output.split(EOL);
expect(ui.output).to.eql('');

var outs = ui.errors.split(EOL);

expect(outs[0]).to.equal(chalk.red('File: someFile (24)'));
expect(outs[1]).to.equal(chalk.red('buildFailed'));
Expand All @@ -140,7 +144,10 @@ describe('Watcher', function() {
col: 80,
message: 'buildFailed'
}));
var outs = ui.output.split(EOL);

expect(ui.output).to.eql('');

var outs = ui.errors.split(EOL);

expect(outs[0]).to.equal(chalk.red('File: someFile'));
expect(outs[1]).to.equal(chalk.red('buildFailed'));
Expand All @@ -154,7 +161,9 @@ describe('Watcher', function() {
message: 'buildFailed'
}));

var outs = ui.output.split(EOL);
expect(ui.output).to.eql('');

var outs = ui.errors.split(EOL);

expect(outs[0]).to.equal(chalk.red('File: someFile (24:80)'));
expect(outs[1]).to.equal(chalk.red('buildFailed'));
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tasks/server/express-server-test.js
Expand Up @@ -532,7 +532,7 @@ describe('express-server', function() {
.get('/tests/test-file.txt')
.set('accept', 'text/html')
.expect(200)
.expect('some contents')
.expect(/some contents/)
.expect('Content-Type', /text/)
.end(function(err) {
if (err) {
Expand Down

0 comments on commit caf7c16

Please sign in to comment.