Browse Source

Provided initial compass compile test.

This only tests that importing compass does not error.
master
Michael Hellein 11 years ago
parent
commit
a50dce0ec9
  1. 10
      package.json
  2. 25
      test/compileSpec.js
  3. 1
      test/imports.scss

10
package.json

@ -16,6 +16,9 @@
"sass",
"css3"
],
"scripts": {
"test": "./node_modules/jasmine-node/bin/jasmine-node test"
},
"license": "MIT",
"ignore": [
"**/.*",
@ -23,5 +26,10 @@
"bower_components",
"test",
"tests"
]
],
"devDependencies": {
"chalk": "^0.5.1",
"jasmine-node": "^1.14.5",
"node-sass": "^0.9.3"
}
}

25
test/compileSpec.js

@ -0,0 +1,25 @@
var sass = require('node-sass');
var chalk = require('chalk');
describe("Imports", function () {
it("should import all the provided files without an error", function (done) {
var success = jasmine.createSpy('ImportSuccess');
function complete() {
expect(success).toHaveBeenCalled();
done();
}
sass.render({
file: __dirname + "/imports.scss",
success: function(s){
success();
complete();
},
error: function(e){
complete();
console.log(chalk.red("Sass error:"), e);
}
});
});
});

1
test/imports.scss

@ -0,0 +1 @@
@import "../lib/compass";
Loading…
Cancel
Save