Skip to content

Commit

Permalink
restore expectFile’s
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Nov 1, 2016
1 parent aedf1b2 commit 4ea5cbc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ describe('sourcemap-concat', function() {
});
builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('all-inner.js').in(result);
expectFile('all-inner.map').in(result);
expectValidSourcemap('all-inner.js').in(result);
});
});
Expand All @@ -48,6 +50,8 @@ describe('sourcemap-concat', function() {
});
builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('all.js').in(result);
expectFile('all.map').in(result);
expectValidSourcemap('all.js').in(result);
});
});
Expand All @@ -70,6 +74,8 @@ describe('sourcemap-concat', function() {
});
builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('all-with-header.js').in(result);
expectFile('all-with-header.map').in(result);
expectValidSourcemap('all-with-header.js').in(result);
});
});
Expand Down Expand Up @@ -100,6 +106,8 @@ describe('sourcemap-concat', function() {

builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('all-the-things.js').in(result);
expectFile('all-the-things.map').in(result);
expectValidSourcemap('all-the-things.js').in(result);
});
});
Expand Down Expand Up @@ -136,6 +144,8 @@ describe('sourcemap-concat', function() {

builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('all-the-things-reversed.js').in(result);
expectFile('all-the-things-reversed.map').in(result);
expectValidSourcemap('all-the-things-reversed.js').in(result);
});
});
Expand Down Expand Up @@ -188,6 +198,8 @@ describe('sourcemap-concat', function() {

builder = new broccoli.Builder(final);
return builder.build().then(function(result) {
expectFile('staged.js').in(result);
expectFile('staged.map').in(result);
expectValidSourcemap('staged.js').in(result);
});
});
Expand Down Expand Up @@ -255,6 +267,8 @@ describe('sourcemap-concat', function() {

builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('inner-with-headers.js').in(result);
expectFile('inner-with-headers.map').in(result);
expectValidSourcemap('inner-with-headers.js').in(result);
});
});
Expand All @@ -268,6 +282,8 @@ describe('sourcemap-concat', function() {

builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('inner-with-headers-reversed.js').in(result);
expectFile('inner-with-headers-reversed.map').in(result);
expectValidSourcemap('inner-with-headers-reversed.js').in(result);
});
});
Expand All @@ -282,6 +298,8 @@ describe('sourcemap-concat', function() {
builder = new broccoli.Builder(node);

return builder.build().then(function(result) {
expectFile('inner-with-footers.js').in(result);
expectFile('inner-with-footers.map').in(result);
expectValidSourcemap('inner-with-footers.js').in(result);
});
});
Expand Down Expand Up @@ -310,6 +328,7 @@ describe('sourcemap-concat', function() {
return builder.build().then(function(result) {
expectFile('nothing.js').in(result);
expectFile('nothing.map').in(result);
// TODO: https://github.com/ben-ng/sourcemap-validator/issues/4
});
});

Expand Down Expand Up @@ -351,6 +370,8 @@ describe('sourcemap-concat', function() {
});
builder = new broccoli.Builder(node);
return builder.build().then(function(result) {
expectFile('sneaky.js').in(result);
expectFile('sneaky.map').in(result);
expectValidSourcemap('sneaky.js').in(result);
});
});
Expand Down

1 comment on commit 4ea5cbc

@stefanpenner
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually just noticed expectValidSourcemap does this, should likely revert

Please sign in to comment.