Browse Source

Merge pull request #8 from michaek/feature/tests

Corrected import path for hacks and added a single test
master
Guillaume Balaine 11 years ago
parent
commit
8f0838b263
  1. 2
      lib/compass/css3/_images.scss
  2. 10
      package.json
  3. 25
      test/compileSpec.js
  4. 1
      test/imports.scss

2
lib/compass/css3/_images.scss

@ -1,5 +1,5 @@
@import "shared";
@import "../../utilities/general/hacks";
@import "../utilities/general/hacks";
// Background property support for vendor prefixing within values.
@mixin background(

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