Skip to content

Commit

Permalink
Broken url test
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Mar 9, 2018
1 parent 1e49903 commit 36ea40a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/broken-url/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var test = require("tape");
var fs = require("fs");
var collect = require("collect-stream");
var plugin = require("../..");
var gulp = require("gulp");

test('Broken urls', function(t) {
var stream = gulp.src("style.css")
.pipe(plugin());
collect(stream, function(err, vinyls) {
t.assert(err);
t.end();
});
});
2 changes: 2 additions & 0 deletions test/broken-url/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'http://foo.bar.com/x.css';
body {}

0 comments on commit 36ea40a

Please sign in to comment.