Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 01503a0

Browse files
chore: exports gavel directly from lib/
1 parent de99480 commit 01503a0

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

bin/gavel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var cmd = require('commander');
55
var httpParser = require('http-string-parser');
66
var curlParser = require('curl-trace-parser');
7-
var gavel = require('../lib/gavel');
7+
var gavel = require('../lib');
88
var fs = require('fs');
99

1010
cmd.version('0.0.1');
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gavel",
33
"version": "0.0.0-semantically-released",
44
"description": "Validator of HTTP transactions (JavaScript implementation)",
5-
"main": "lib/gavel.js",
5+
"main": "lib/index.js",
66
"engines": {
77
"node": ">= 8"
88
},

test/cucumber/step_definitions/model_steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
const deepEqual = require('deep-equal');
3-
const gavel = require('../../../lib/gavel');
3+
const gavel = require('../../../lib');
44

55
module.exports = function() {
66
// TODO consider refactoring for for better acceptace testing to separated steps

test/cucumber/support/world.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
66
*/
77
/* eslint-disable */
8-
const gavel = require('../../../lib/gavel');
8+
const gavel = require('../../../lib');
99
const vm = require('vm');
1010
const util = require('util');
1111
const { assert } = require('chai');
@@ -92,7 +92,10 @@ class World {
9292
// further reading on node.js load paths:
9393
// http://nodejs.org/docs/v0.8.23/api/all.html#all_all_together
9494

95-
const formattedCode = code.replace("require('", "require('../../../lib/");
95+
const formattedCode = code.replace(
96+
"require('gavel",
97+
"require('../../../lib"
98+
);
9699

97100
try {
98101
return eval(formattedCode);

test/unit/validate-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { assert } = require('chai');
22
const clone = require('clone');
3-
const { validate } = require('../../lib/gavel');
3+
const { validate } = require('../../lib');
44

55
describe('Gavel proxies to functions with callbacks', () => {
66
// Examples from README.md

0 commit comments

Comments
 (0)