This repository was archived by the owner on Nov 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 4
4
var cmd = require ( 'commander' ) ;
5
5
var httpParser = require ( 'http-string-parser' ) ;
6
6
var curlParser = require ( 'curl-trace-parser' ) ;
7
- var gavel = require ( '../lib/gavel ' ) ;
7
+ var gavel = require ( '../lib' ) ;
8
8
var fs = require ( 'fs' ) ;
9
9
10
10
cmd . version ( '0.0.1' ) ;
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
"name" : " gavel" ,
3
3
"version" : " 0.0.0-semantically-released" ,
4
4
"description" : " Validator of HTTP transactions (JavaScript implementation)" ,
5
- "main" : " lib/gavel .js" ,
5
+ "main" : " lib/index .js" ,
6
6
"engines" : {
7
7
"node" : " >= 8"
8
8
},
Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
2
const deepEqual = require ( 'deep-equal' ) ;
3
- const gavel = require ( '../../../lib/gavel ' ) ;
3
+ const gavel = require ( '../../../lib' ) ;
4
4
5
5
module . exports = function ( ) {
6
6
// TODO consider refactoring for for better acceptace testing to separated steps
Original file line number Diff line number Diff line change 5
5
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
6
6
*/
7
7
/* eslint-disable */
8
- const gavel = require ( '../../../lib/gavel ' ) ;
8
+ const gavel = require ( '../../../lib' ) ;
9
9
const vm = require ( 'vm' ) ;
10
10
const util = require ( 'util' ) ;
11
11
const { assert } = require ( 'chai' ) ;
@@ -92,7 +92,10 @@ class World {
92
92
// further reading on node.js load paths:
93
93
// http://nodejs.org/docs/v0.8.23/api/all.html#all_all_together
94
94
95
- const formattedCode = code . replace ( "require('" , "require('../../../lib/" ) ;
95
+ const formattedCode = code . replace (
96
+ "require('gavel" ,
97
+ "require('../../../lib"
98
+ ) ;
96
99
97
100
try {
98
101
return eval ( formattedCode ) ;
Original file line number Diff line number Diff line change 1
1
const { assert } = require ( 'chai' ) ;
2
2
const clone = require ( 'clone' ) ;
3
- const { validate } = require ( '../../lib/gavel ' ) ;
3
+ const { validate } = require ( '../../lib' ) ;
4
4
5
5
describe ( 'Gavel proxies to functions with callbacks' , ( ) => {
6
6
// Examples from README.md
You can’t perform that action at this time.
0 commit comments