-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrades to new mocha testing suite and module imports
- Loading branch information
1 parent
8d5a94d
commit 9723af4
Showing
13 changed files
with
12,364 additions
and
4,223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,154 +1,12 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 8 | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": 2, | ||
"arrow-body-style": 2, | ||
"arrow-parens": [ | ||
2, | ||
"as-needed" | ||
], | ||
"arrow-spacing": 2, | ||
"accessor-pairs": 2, | ||
"block-scoped-var": 2, | ||
"block-spacing": 2, | ||
"brace-style": [ | ||
2, | ||
"stroustrup" | ||
], | ||
"camelcase": [ | ||
2, | ||
{ | ||
"properties": "never" | ||
} | ||
], | ||
"comma-dangle": 2, | ||
"comma-spacing": 2, | ||
"comma-style": 2, | ||
"complexity": [ | ||
0, | ||
11 | ||
], | ||
"computed-property-spacing": 2, | ||
"consistent-return": 2, | ||
"consistent-this": 2, | ||
"constructor-super": 2, | ||
"curly": [ | ||
2, | ||
"multi-line" | ||
], | ||
"default-case": 2, | ||
"dot-location": [ | ||
2, | ||
"property" | ||
], | ||
"dot-notation": 2, | ||
"eol-last": 2, | ||
"eqeqeq": 2, | ||
"func-style": [ | ||
2, | ||
"declaration", | ||
{ | ||
"allowArrowFunctions": true | ||
} | ||
], | ||
"generator-star-spacing": 2, | ||
"global-require": 2, | ||
"guard-for-in": 2, | ||
"handle-callback-err": 2, | ||
"id-match": 2, | ||
"indent": [ | ||
2, | ||
2, | ||
{ | ||
"flatTernaryExpressions": true, | ||
"MemberExpression": "off", | ||
"SwitchCase": 1, | ||
"VariableDeclarator": { | ||
"var": 2, | ||
"let": 2, | ||
"const": 3 | ||
} | ||
} | ||
], | ||
"jsx-quotes": 2, | ||
"key-spacing": 2, | ||
"keyword-spacing": 2, | ||
"lines-around-comment": 2, | ||
"max-nested-callbacks": 2, | ||
"new-cap": 2, | ||
"new-parens": 2, | ||
"no-cond-assign": 2, | ||
"no-constant-condition": 2, | ||
"no-control-regex": 2, | ||
"no-debugger": 2, | ||
"no-delete-var": 2, | ||
"no-dupe-keys": 2, | ||
"no-dupe-args": 2, | ||
"no-duplicate-case": 2, | ||
"no-empty": 2, | ||
"no-empty-character-class": 2, | ||
"no-ex-assign": 2, | ||
"no-extra-boolean-cast": 2, | ||
"no-extra-parens": 2, | ||
"no-extra-semi": 2, | ||
"no-fallthrough": 2, | ||
"no-func-assign": 2, | ||
"no-inner-declarations": 2, | ||
"no-invalid-regexp": 2, | ||
"no-irregular-whitespace": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-negated-in-lhs": 2, | ||
"no-obj-calls": 2, | ||
"no-octal": 2, | ||
"no-redeclare": 2, | ||
"no-regex-spaces": 2, | ||
"no-sparse-arrays": 2, | ||
"no-undef": 2, | ||
"no-unreachable": 2, | ||
"no-unused-vars": 2, | ||
"no-var": 2, | ||
"object-curly-spacing": 2, | ||
"object-shorthand": 2, | ||
"operator-assignment": 2, | ||
"operator-linebreak": 2, | ||
"prefer-arrow-callback": 2, | ||
"prefer-const": 2, | ||
"prefer-spread": 2, | ||
"prefer-template": 1, | ||
"quote-props": [ | ||
2, | ||
"consistent-as-needed" | ||
], | ||
"quotes": 2, | ||
"radix": 2, | ||
"require-jsdoc": 2, | ||
"require-yield": 2, | ||
"semi": 2, | ||
"semi-spacing": 2, | ||
"sort-vars": 2, | ||
"space-before-blocks": 2, | ||
"space-before-function-paren": [ | ||
2, | ||
"never" | ||
], | ||
"space-in-parens": 2, | ||
"space-infix-ops": 2, | ||
"space-unary-ops": 2, | ||
"spaced-comment": 2, | ||
"use-isnan": 2, | ||
"valid-typeof": 2, | ||
"wrap-iife": 2, | ||
"wrap-regex": 2, | ||
"yoda": [ | ||
2, | ||
"never" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
<!-- Are you asking for help or have a general question? --> | ||
<!-- If so, please consider using the D3plus Gitter community. --> | ||
<!-- https://gitter.im/d3plus/ --> | ||
<!-- If possible, please recreate your issue in a JSFiddle. --> | ||
|
||
<!-- Provide a general summary of the issue in the title above. --> | ||
<!-- Please create separate issues for each individual bug/feature. --> | ||
<!-- You can use this template to get started: --> | ||
<!-- https://jsfiddle.net/davelandry/u7dfeop0/ --> | ||
|
||
### Expected Behavior | ||
<!-- If you're describing a bug, tell us what should happen --> | ||
<!-- If you're suggesting a change/improvement, tell us how it should work --> | ||
|
||
### Current Behavior | ||
<!-- If describing a bug, tell us what happens instead of the expected behavior --> | ||
<!-- If suggesting a change/improvement, explain the difference from current behavior --> | ||
|
||
### Steps to Reproduce (for bugs) | ||
<!-- Provide a link to a live example, a screenshot, --> | ||
<!-- and/or an unambiguous set of steps to reproduce this bug. --> | ||
1. | ||
2. | ||
3. | ||
|
||
### Your Environment | ||
<!-- Include as many relevant details about the environment in which you experienced the bug. --> | ||
* Browser Name: | ||
* Operating System and Version: | ||
<!-- Please remove as many unrelated methods until the bug is still reproducible. --> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Lint Code | ||
run: ./node_modules/.bin/eslint src test | ||
- name: Run Tests | ||
run: ./node_modules/.bin/mocha 'test/**/*-test.js' |
Oops, something went wrong.