Fix lint errors and add tests for @import (plugin)

This commit is contained in:
rjgotten
2015-02-26 14:40:36 +01:00
parent 39c6aa65f3
commit d96af08795
6 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
.test {
result: OK;
}

View File

@@ -0,0 +1,5 @@
@import (plugin) "import/plugins/test";
.test {
result : test()
}

View File

@@ -0,0 +1,7 @@
module.exports = {
install : function( less, pluginManager ) {
less.functions.functionRegistry.add( "test", function() {
return new less.tree.Anonymous( "OK" );
});
}
}