From c8cf43ee530714b4df4d3ab89a8712b0c2152d35 Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Sun, 28 Feb 2021 13:38:51 -0500 Subject: [PATCH] test: multi.spec test --- test/{multi.spec => }/api.v1.yaml | 0 test/{multi.spec => }/api.v2.yaml | 0 test/{multi.spec => }/multi.spec.spec.ts | 2 +- test/query.serialization.ts | 8 +++----- 4 files changed, 4 insertions(+), 6 deletions(-) rename test/{multi.spec => }/api.v1.yaml (100%) rename test/{multi.spec => }/api.v2.yaml (100%) rename test/{multi.spec => }/multi.spec.spec.ts (98%) diff --git a/test/multi.spec/api.v1.yaml b/test/api.v1.yaml similarity index 100% rename from test/multi.spec/api.v1.yaml rename to test/api.v1.yaml diff --git a/test/multi.spec/api.v2.yaml b/test/api.v2.yaml similarity index 100% rename from test/multi.spec/api.v2.yaml rename to test/api.v2.yaml diff --git a/test/multi.spec/multi.spec.spec.ts b/test/multi.spec.spec.ts similarity index 98% rename from test/multi.spec/multi.spec.spec.ts rename to test/multi.spec.spec.ts index 526dce4b..f7ee0ee9 100644 --- a/test/multi.spec/multi.spec.spec.ts +++ b/test/multi.spec.spec.ts @@ -36,7 +36,7 @@ function createServer() { const path = require('path'); const bodyParser = require('body-parser'); const http = require('http'); - const OpenApiValidator = require('../../src'); + const OpenApiValidator = require('../src'); const app = express(); app.use(bodyParser.urlencoded({ extended: false })); diff --git a/test/query.serialization.ts b/test/query.serialization.ts index 78435907..019e55ab 100644 --- a/test/query.serialization.ts +++ b/test/query.serialization.ts @@ -1,12 +1,10 @@ -import * as path from 'path'; -import * as express from 'express'; import { expect } from 'chai'; +import * as express from 'express'; +import * as path from 'path'; import * as request from 'supertest'; import { createApp } from './common/app'; -import * as packageJson from '../package.json'; -import { log } from 'console'; -describe.only('styles', () => { +describe('styles', () => { let app = null; before(async () => { const apiSpec = path.join('test', 'resources', 'query.serialization.yaml');