Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 16, 2017
1 parent 5586e51 commit bfd28a2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const refParser = require('json-schema-ref-parser');
const oas = require('../packages/api-explorer-ui/__tests__/fixtures/petstore/oas');
const createDocs = require('../packages/api-explorer-ui/lib/create-docs');

const ApiExplorer = require('../packages/api-explorer-ui');
const ApiExplorer = require('../packages/api-explorer-ui/src/index.jsx');

(async function main() {
const docs = createDocs(oas, 'api-setting');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"pretest": "npm run lint && npm run inspect",
"test": "nyc mocha",
"posttest": "nyc check-coverage --statements 90 --branches 70 --functions 90 --lines 90",
"example": "watchify packages/api-explorer-ui/src/index.jsx -t [ babelify ] -o 'derequire > packages/api-explorer-ui/dist/index.js' --extension jsx --standalone ApiExplorer & budo example/index.jsx --dir example -- -t babelify -p livereactload --extension .jsx"
"example": "budo example/index.jsx --dir example -- -t babelify -p livereactload --extension .jsx",
"build": "watchify packages/api-explorer-ui/src/index.jsx -t [ babelify ] -o 'derequire > packages/api-explorer-ui/dist/index.js' --extension jsx --standalone ApiExplorer"
},
"publishConfig": {
"registry": "http://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/__tests__/CodeSample.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const React = require('react');
const { shallow } = require('enzyme');
const extensions = require('readme-oas-extensions');
const extensions = require('../../readme-oas-extensions');

const CodeSample = require('../src/CodeSample');

Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/__tests__/index.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const React = require('react');
const { shallow } = require('enzyme');
const extensions = require('readme-oas-extensions');
const extensions = require('../../readme-oas-extensions');
const ApiExplorer = require('../src');

const oas = require('./fixtures/petstore/swagger');
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/__tests__/lib/show-code.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const extensions = require('readme-oas-extensions');
const extensions = require('../../../readme-oas-extensions');

const showCode = require('../../src/lib/show-code');

Expand Down

0 comments on commit bfd28a2

Please sign in to comment.