-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac34de1
commit 9fbbc9d
Showing
18 changed files
with
6,164 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,44 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"env": { | ||
"browser": false, | ||
"node": true, | ||
"mocha": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true | ||
} | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"quote-props": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea | ||
|
||
.nyc_output | ||
coverage | ||
|
||
node_modules | ||
*.log |
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,50 @@ | ||
# lb-api-test | ||
|
||
|
||
### Test | ||
|
||
|
||
### Expect | ||
|
||
#### Status only test | ||
|
||
```js | ||
{ | ||
expect: 200 | ||
} | ||
``` | ||
|
||
#### Object test | ||
|
||
```js | ||
{ | ||
expect: { | ||
status: 200, | ||
body: { | ||
expected: 'value' | ||
} | ||
} | ||
} | ||
``` | ||
|
||
#### Response custom test | ||
|
||
```js | ||
{ | ||
expect: response => { | ||
// custom expect here | ||
} | ||
} | ||
``` | ||
|
||
#### Body custom test | ||
|
||
```js | ||
{ | ||
expect: { | ||
body: response => { | ||
// custom expect here | ||
} | ||
} | ||
} | ||
``` |
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,8 @@ | ||
'use strict'; | ||
|
||
const TestRunner = require('./src/TestRunner'); | ||
|
||
module.exports = (app, config, testSuiteDefinition) => { | ||
new TestRunner(config) | ||
.run(app, testSuiteDefinition); | ||
}; |
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,3 @@ | ||
./src/**/*.test.js | ||
--recursive | ||
--check-leaks |
Oops, something went wrong.