mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
49
unit-tests/.mocharc.yml
Normal file
49
unit-tests/.mocharc.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
# This is an example Mocha config containing every Mocha option plus others
|
||||
allow-uncaught: false
|
||||
async-only: false
|
||||
bail: false
|
||||
check-leaks: false
|
||||
color: true
|
||||
delay: false
|
||||
diff: true
|
||||
exit: false # could be expressed as "no-exit: true"
|
||||
extension:
|
||||
- 'js'
|
||||
# fgrep and grep are mutually exclusive
|
||||
# fgrep: something
|
||||
file:
|
||||
- 'unit-tests/runtime.js'
|
||||
forbid-only: false
|
||||
forbid-pending: false
|
||||
full-trace: false
|
||||
# global:
|
||||
# - 'jQuery'
|
||||
# - '$'
|
||||
# fgrep and grep are mutually exclusive
|
||||
# grep: something
|
||||
growl: false
|
||||
# ignore:
|
||||
# - '/path/to/some/ignored/file'
|
||||
inline-diffs: false
|
||||
# needs to be used with grep or fgrep
|
||||
# invert: false
|
||||
recursive: false
|
||||
reporter: 'spec'
|
||||
# reporter-option:
|
||||
# - 'foo=bar'
|
||||
# - 'baz=quux'
|
||||
require: 'source-map-support/register'
|
||||
retries: 1
|
||||
slow: 75
|
||||
sort: false
|
||||
spec: 'unit-tests/**/*.js' # the positional arguments!
|
||||
timeout: false # same as "no-timeout: true" or "timeout: 0"
|
||||
trace-warnings: true # node flags ok
|
||||
ui: 'mocha-typescript'
|
||||
v8-stack-trace-limit: 100 # V8 flags are prepended with "v8-"
|
||||
watch: false
|
||||
# watch-files:
|
||||
# - 'lib/**/*.js'
|
||||
# - 'test/**/*.js'
|
||||
# watch-ignore:
|
||||
# - 'lib/vendor'
|
||||
@@ -1,4 +0,0 @@
|
||||
--require unit-tests/runtime.js
|
||||
--ui mocha-typescript
|
||||
--require source-map-support/register
|
||||
--recursive unit-tests
|
||||
@@ -17,7 +17,7 @@ describe("ui", () => {
|
||||
}));
|
||||
});
|
||||
|
||||
function create(css: string, source: string = "css-selectors.ts@test"): { rules: selector.RuleSet[], map: selector.SelectorsMap } {
|
||||
function create(css: string, source: string = "css-selectors.ts@test"): { rules: selector.RuleSet[], map: selector.SelectorsMap<any> } {
|
||||
let parse = parser.parse(css, { source });
|
||||
let rulesAst = parse.stylesheet.rules.filter(n => n.type === "rule");
|
||||
let rules = selector.fromAstNodes(rulesAst);
|
||||
|
||||
Reference in New Issue
Block a user