Skip to content

Commit

Permalink
chore: fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Dec 16, 2024
1 parent 42e65eb commit 6c9c634
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 24 deletions.
4 changes: 2 additions & 2 deletions examples/graphql/src/consumer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable:no-unused-expression object-literal-sort-keys max-classes-per-file no-empty */
import * as chai from 'chai';
import chai from 'chai';
import * as path from 'path';
import * as chaiAsPromised from 'chai-as-promised';
import chaiAsPromised from 'chai-as-promised';
import { query } from './consumer';
import {
Pact,
Expand Down
2 changes: 1 addition & 1 deletion examples/graphql/src/provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as express from 'express';
import express from 'express';
import { createHandler } from 'graphql-http/lib/use/express';
import { buildSchema } from 'graphql';

Expand Down
1 change: 0 additions & 1 deletion examples/typescript/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import axios, { AxiosPromise } from 'axios';

export class DogService {
private url: string;
private port: number;
Expand Down
6 changes: 3 additions & 3 deletions examples/typescript/test/get-dog.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* tslint:disable:no-unused-expression object-literal-sort-keys max-classes-per-file no-empty */
import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import path = require('path');
import * as sinonChai from 'sinon-chai';
import sinonChai from 'sinon-chai';
import { Pact, Interaction, Matchers, LogLevel } from '@pact-foundation/pact';

const expect = chai.expect;
Expand Down
7 changes: 3 additions & 4 deletions examples/v3/typescript/test/user.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as path from 'path';
import * as sinonChai from 'sinon-chai';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import sinonChai from 'sinon-chai';
import { PactV3, MatchersV3, LogLevel } from '@pact-foundation/pact';
import { UserService } from '../index';
const { like } = MatchersV3;
Expand Down
2 changes: 1 addition & 1 deletion src/common/net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @private
*/

import * as net from 'net';
import net from 'net';

export const localAddresses = ['127.0.0.1', 'localhost', '0.0.0.0', '::1'];

Expand Down
2 changes: 1 addition & 1 deletion src/dsl/verifier/proxy/parseBody.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as http from 'http';
import http from 'http';

interface ReqBodyExtended extends http.IncomingMessage {
body?: Buffer | Record<string, unknown>;
Expand Down
2 changes: 1 addition & 1 deletion src/dsl/verifier/proxy/proxy.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

import * as http from 'http';
import http from 'http';

import { waitForServerReady } from './proxy';

Expand Down
2 changes: 1 addition & 1 deletion src/dsl/verifier/proxy/proxy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express from 'express';
import HttpProxy from 'http-proxy';
import bodyParser from 'body-parser';
import * as http from 'http';
import http from 'http';

import { ProxyOptions } from './types';
import logger from '../../../common/logger';
Expand Down
2 changes: 1 addition & 1 deletion src/dsl/verifier/proxy/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as express from 'express';
import express from 'express';
import { LogLevel } from '../../options';
import { JsonMap, AnyJson } from '../../../common/jsonTypes';
import { MessageProviders } from '../../message';
Expand Down
4 changes: 2 additions & 2 deletions src/dsl/verifier/verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import serviceFactory, {
VerifierOptions as PactCoreVerifierOptions,
} from '@pact-foundation/pact-core';
import { omit, isEmpty } from 'lodash';
import * as http from 'http';
import * as url from 'url';
import http from 'http';
import url from 'url';

import { AddressInfo } from 'net';
import logger, { setLogLevel } from '../../common/logger';
Expand Down
2 changes: 1 addition & 1 deletion src/httpPact/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import serviceFactory, {
} from '@pact-foundation/pact-core';

import chalk from 'chalk';
import * as path from 'path';
import path from 'path';
import process from 'process';
import { isEmpty } from 'lodash';

Expand Down
4 changes: 2 additions & 2 deletions src/messageProviderPact.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as chai from 'chai';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import sinonChai from 'sinon-chai';
import express from 'express';
import * as http from 'http';
import http from 'http';
import { Message } from './dsl/message';
import {
MessageProviderPact,
Expand Down
2 changes: 1 addition & 1 deletion src/messageProviderPact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { omit, isEmpty } from 'lodash';

import serviceFactory, { VerifierOptions } from '@pact-foundation/pact-core';
import express from 'express';
import * as http from 'http';
import http from 'http';
import bodyParser from 'body-parser';
import { encode as encodeBase64 } from 'js-base64';

Expand Down
2 changes: 1 addition & 1 deletion src/v3/matchers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as chai from 'chai';
import chai from 'chai';
import * as MatchersV3 from './matchers';

const { expect } = chai;
Expand Down
2 changes: 1 addition & 1 deletion src/v3/xml/xmlElement.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as chai from 'chai';
import chai from 'chai';
import { describe } from 'mocha';
import { XmlText } from './xmlText';
import { XmlElement } from './xmlElement';
Expand Down

0 comments on commit 6c9c634

Please sign in to comment.