Skip to content

Commit

Permalink
unit test on petstore
Browse files Browse the repository at this point in the history
  • Loading branch information
frankthelen committed Feb 3, 2018
1 parent ffee437 commit 1404a63
Show file tree
Hide file tree
Showing 4 changed files with 1,050 additions and 11 deletions.
12 changes: 1 addition & 11 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@ const Hapi = require('hapi');
const HapiSwagger = require('hapi-swagger');
const Inert = require('inert');
const Vision = require('vision');
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const fs = require('fs');
const sinon = require('sinon');
const sinonChai = require('sinon-chai');
const HapiSwaggerStatic = require('../src/index');

chai.use(chaiAsPromised);
chai.use(sinonChai);

global.chai = chai;
global.sinon = sinon;
global.expect = chai.expect;
global.should = chai.should();
require('./setupTests');

async function setup({ pluginOptions = {} }) {
const server = new Hapi.Server({
Expand Down
Loading

0 comments on commit 1404a63

Please sign in to comment.