Blob Blame History Raw
commit 25b4076a62f7e477c62a915dbbe97f44294992f0
Author: Tom Hughes <tom@compton.nu>
Date:   Fri Jan 1 09:52:54 2016 +0000

    Update tests for newer versions of should.js

diff --git a/package.json b/package.json
index 7726e50..b9acd70 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
     "source-map": "0.1.x"
   },
   "devDependencies": {
-    "should": "2.x",
+    "should": "8.x",
     "mocha": "*",
     "jscoverage": "0.3.8"
   },
diff --git a/test/middleware/index.js b/test/middleware/index.js
index 2e76d08..5d26722 100644
--- a/test/middleware/index.js
+++ b/test/middleware/index.js
@@ -24,7 +24,7 @@ describe('middleware', function() {
         dest: __dirname
       })(req, res, function() {
         path = __dirname + '/test.css';
-        fs.readFileSync(path).toString().should.include('color: #000');
+        fs.readFileSync(path).toString().should.containEql('color: #000');
         fs.unlinkSync(path);
         done();
       });
@@ -39,7 +39,7 @@ describe('middleware', function() {
         dest: __dirname
       })(req, res, function() {
         path = __dirname + '/test.css';
-        fs.readFileSync(path).toString().should.include('sourceMappingURL=');
+        fs.readFileSync(path).toString().should.containEql('sourceMappingURL=');
         fs.unlinkSync(path);
         done();
       });
diff --git a/test/run.js b/test/run.js
index 0763c3f..1132cef 100644
--- a/test/run.js
+++ b/test/run.js
@@ -67,7 +67,7 @@ addSuite('sourcemap', readDir('test/sourcemap'), function(test){
     if (inline) {
       style.sourcemap.sourcesContent.should.not.be.empty;
       if (~test.indexOf('utf-8')) comment += 'charset=utf-8;';
-      css.should.include(comment + 'base64,');
+      css.should.containEql(comment + 'base64,');
     } else {
       style.sourcemap.should.eql(JSON.parse(expected));
     }