Codebase list node-har-schema / abb18c0
Import upstream version 2.0.0+git20181107.1.c01b2e4 Debian Janitor 3 years ago
6 changed file(s) with 2 addition(s) and 79 deletion(s). Raw diff Collapse all Expand all
+0
-17
.codeclimate.yml less more
0 engines:
1 fixme:
2 enabled: true
3
4 duplication:
5 enabled: true
6 config:
7 languages:
8 - javascript
9
10 eslint:
11 enabled: true
12
13 ratings:
14 paths:
15 - lib/**
16 - test/**
+0
-13
.editorconfig less more
0 # http://editorconfig.org
1 root = true
2
3 [*]
4 charset = utf-8
5 end_of_line = lf
6 indent_size = 2
7 indent_style = space
8 insert_final_newline = true
9 trim_trailing_whitespace = true
10
11 [*.md]
12 trim_trailing_whitespace = false
+0
-3
.gitignore less more
0 *.log
1 /node_modules
2 /.nyc_output
+0
-29
.travis.yml less more
0 language: node_js
1
2 node_js:
3 - 4
4 - 6
5 - 7
6
7 env:
8 - BABEL_ENV=test
9
10 matrix:
11 fast_finish: true
12
13 cache:
14 directories:
15 - node_modules
16
17 before_script:
18 - npm prune
19
20 after_success:
21 - npm run coverage
22 - npm run codeclimate
23 - npm run semantic-release
24
25 branches:
26 except:
27 - /^v\d+\.\d+\.\d+$/
28 - /^greenkeeper\/.+/
4646 "codeclimate-test-reporter": "^0.4.0",
4747 "cz-conventional-changelog": "^1.2.0",
4848 "echint": "^2.1.0",
49 "semantic-release": "^6.3.2",
49 "semantic-release": "^15.0.0",
5050 "snazzy": "^5.0.0",
51 "tap": "^8.0.1"
51 "tap": "^12.0.0"
5252 }
5353 }
+0
-15
test/index.js less more
0 'use strict'
1
2 const schemas = require('../lib')
3 const Ajv = require('ajv')
4 const tap = require('tap')
5
6 tap.test('har-schema', (assert) => {
7 const ajv = new Ajv()
8 const keys = Object.keys(schemas)
9
10 assert.plan(keys.length * 2)
11
12 keys.forEach((key) => assert.doesNotThrow(() => ajv.addSchema(schemas[key])))
13 keys.forEach((key) => assert.type(ajv.compile(schemas[key]), 'function'))
14 })