Skip to content

Commit

Permalink
Merge pull request #8 from michaek/feature/tests
Browse files Browse the repository at this point in the history
Corrected import path for hacks and added a single test
  • Loading branch information
Igosuki committed Aug 5, 2014
2 parents 9a9778a + a50dce0 commit 8f0838b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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(
Expand Down
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -16,12 +16,20 @@
"sass",
"css3"
],
"scripts": {
"test": "./node_modules/jasmine-node/bin/jasmine-node test"
},
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
],
"devDependencies": {
"chalk": "^0.5.1",
"jasmine-node": "^1.14.5",
"node-sass": "^0.9.3"
}
}
25 changes: 25 additions & 0 deletions 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 change: 1 addition & 0 deletions test/imports.scss
@@ -0,0 +1 @@
@import "../lib/compass";

0 comments on commit 8f0838b

Please sign in to comment.