forked from reisborw/FAQ
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixed error in unit testing not allowing for code to be tested
Unit testing was not testing certain lines of code as errors were not being thrown correctly Added a new error on getOneQuestion() function if the sql is undefined
- Loading branch information
Showing
7 changed files
with
105 additions
and
105 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,73 +1,75 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"jasmine": true, | ||
"node": true, | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 8 | ||
}, | ||
"rules": { | ||
"arrow-body-style": 2, | ||
"arrow-spacing": ["warn", {"before": true, "after": true}], | ||
"brace-style": 2, | ||
"camelcase": [2, {"properties": "never"}], | ||
"complexity": ["error", 5], | ||
"eol-last": "warn", | ||
"eqeqeq": "error", | ||
"func-call-spacing": ["error", "never"], | ||
"global-require": "error", | ||
"handle-callback-err": "warn", | ||
"indent": [1, "tab", {"SwitchCase": 1}], | ||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}], | ||
"linebreak-style": ["warn", "unix"], | ||
"max-depth": ["error", 3], | ||
"max-len": ["warn", { "code": 120, "tabWidth": 4 }], | ||
"max-lines": ["warn", 150], | ||
"max-lines-per-function": ["error", 20], | ||
"max-nested-callbacks": ["error", 4], | ||
"max-params": ["error", 5], | ||
"max-statements": ["error", 20], | ||
"no-cond-assign": 2, | ||
"no-dupe-args": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-empty": "warn", | ||
"no-empty-function": 2, | ||
"no-multiple-empty-lines": "warn", | ||
"no-extra-parens": 2, | ||
"no-func-assign": 2, | ||
"no-irregular-whitespace": 2, | ||
"no-magic-numbers": [1, {"ignore": [-1, 0, 1]}], | ||
"no-multi-spaces": 1, | ||
"no-multi-str": 1, | ||
"no-unexpected-multiline": 2, | ||
"no-unreachable": 2, | ||
"no-self-assign": 2, | ||
"no-trailing-spaces": 1, | ||
"no-undef": 2, | ||
"no-unused-vars": 1, | ||
"no-var": 2, | ||
"prefer-arrow-callback": 1, | ||
"prefer-const": 2, | ||
"prefer-template": "error", | ||
"quotes": [1, "single"], | ||
"semi": [1, "never"], | ||
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }], | ||
"space-before-function-paren": [2, "never"], | ||
"strict": [2, "global"], | ||
"yoda": 2 | ||
}, | ||
"overrides": [{ | ||
"files": [ "*.test.js", "*.spec.js", "sqlite-async.js" ], | ||
"rules": { | ||
"global-require": "off", | ||
"max-lines-per-function": "off", | ||
"max-lines": "off", | ||
"max-statements": "off", | ||
"no-magic-numbers": "off" | ||
} | ||
}] | ||
} | ||
"env": { | ||
"es6": true, | ||
"jasmine": true, | ||
"node": true, | ||
"browser": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"noInlineConfig": true, | ||
"reportUnusedDisableDirectives": true | ||
}, | ||
"rules": { | ||
"arrow-body-style": "error", | ||
"arrow-spacing": ["warn", {"before": true, "after": true}], | ||
"brace-style": "error", | ||
"camelcase": ["error", {"properties": "never"}], | ||
"complexity": ["error", 5], | ||
"eol-last": "warn", | ||
"eqeqeq": "error", | ||
"func-call-spacing": ["error", "never"], | ||
"global-require": "error", | ||
"handle-callback-err": "warn", | ||
"indent": ["warn", "tab", {"SwitchCase": 1}], | ||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}], | ||
"linebreak-style": ["warn", "unix"], | ||
"max-depth": ["error", 3], | ||
"max-len": ["warn", { "code": 120, "tabWidth": 4 }], | ||
"max-lines": ["warn", {"max": 150, "skipBlankLines": true, "skipComments": true}], | ||
"max-lines-per-function": ["warn", {"max": 20, "skipBlankLines": true, "skipComments": true}], | ||
"max-nested-callbacks": ["error", 4], | ||
"max-params": ["error", 5], | ||
"max-statements": ["error", 20], | ||
"no-cond-assign": "error", | ||
"no-dupe-args": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-empty": "warn", | ||
"no-empty-function": "error", | ||
"no-multiple-empty-lines": "warn", | ||
"no-extra-parens": "error", | ||
"no-func-assign": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-magic-numbers": ["warn", {"ignore": [-1, 0, 1]}], | ||
"no-multi-spaces": "warn", | ||
"no-multi-str": "off", | ||
"no-unexpected-multiline": "error", | ||
"no-unreachable": "error", | ||
"no-self-assign": "error", | ||
"no-trailing-spaces": "warn", | ||
"no-undef": "error", | ||
"no-unused-vars": "warn", | ||
"no-var": 2, | ||
"prefer-arrow-callback": "warn", | ||
"prefer-const": "error", | ||
"prefer-template": "error", | ||
"quotes": ["warn", "single"], | ||
"semi": ["warn", "never"], | ||
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }], | ||
"space-before-function-paren": ["error", "never"], | ||
"strict": ["error", "global"], | ||
"yoda": "error" | ||
}, | ||
"overrides": [{ | ||
"files": [ "*.test.js", "*.spec.js", "*.steps.js" ], | ||
"rules": { | ||
"global-require": "off", | ||
"max-lines-per-function": "off", | ||
"max-lines": "off", | ||
"max-statements": "off", | ||
"no-magic-numbers": "off" | ||
} | ||
}] | ||
} |
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 |
---|---|---|
@@ -36,4 +36,4 @@ public/images/questions/* | ||
public/images/user_avatar/* | ||
|
||
# Screenshots | ||
screenshots | ||
screenshots/* |
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
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
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