mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Add more error tests from #244
This commit is contained in:
1
test/less/errors/import-missing.less
Normal file
1
test/less/errors/import-missing.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "file-does-not-exist.less";
|
||||
3
test/less/errors/import-missing.txt
Normal file
3
test/less/errors/import-missing.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
FileError: 'file-does-not-exist.less' wasn't found.
|
||||
in {path}import-missing.less:1:0
|
||||
1 @import "file-does-not-exist.less";
|
||||
3
test/less/errors/javascript-error.less
Normal file
3
test/less/errors/javascript-error.less
Normal file
@@ -0,0 +1,3 @@
|
||||
.scope {
|
||||
var: `this.foo.toJS()`;
|
||||
}
|
||||
4
test/less/errors/javascript-error.txt
Normal file
4
test/less/errors/javascript-error.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot call method 'toJS' of undefined' in {path}javascript-error.less:2:26
|
||||
1 .scope {
|
||||
2 var: `this.foo.toJS()`;
|
||||
3 }
|
||||
2
test/less/errors/parse-error-missing-bracket.less
Normal file
2
test/less/errors/parse-error-missing-bracket.less
Normal file
@@ -0,0 +1,2 @@
|
||||
body {
|
||||
background-color: #fff;
|
||||
2
test/less/errors/parse-error-missing-bracket.txt
Normal file
2
test/less/errors/parse-error-missing-bracket.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
ParseError: missing closing `}` in {path}parse-error-missing-bracket.less:3:1
|
||||
2 background-color: #fff;
|
||||
Reference in New Issue
Block a user