Skip to content

Commit b4d93ad

Browse files
authored
Merge pull request #123 from chvarkov/develop
fix: fixed tests.
2 parents 20f1e4b + d77dbf0 commit b4d93ad

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎test/network/test-recaptcha-network.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Controller, INestApplication, LiteralObject, Module, Post } from '@nestjs/common';
1+
import { Controller, INestApplication, Module, Post } from '@nestjs/common';
22
import { NestFactory } from '@nestjs/core';
3+
import { LiteralObject } from '../../src/interfaces/literal-object';
34

45
@Controller('api')
56
class TestSiteVerifyController {

‎test/recaptcha-verification-result.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller, INestApplication, Module, Post } from '@nestjs/common';
1+
import { Controller, INestApplication, Post } from '@nestjs/common';
22
import { GoogleRecaptchaModule, Recaptcha, RecaptchaResult, RecaptchaVerificationResult } from '../src';
33
import { Test, TestingModule } from '@nestjs/testing';
44
import { Request } from 'express';

‎test/utils/mocked-recaptcha-api.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LiteralObject } from '@nestjs/common';
1+
import { LiteralObject } from '../../src/interfaces/literal-object';
22
import axios from 'axios';
33
import { AxiosRequestConfig, AxiosResponse, AxiosError, AxiosInstance, InternalAxiosRequestConfig } from "axios";
44
import * as qs from 'qs';

‎test/utils/test-http.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as request from 'supertest';
2-
import { LiteralObject } from '@nestjs/common';
2+
import { LiteralObject } from '../../src/interfaces/literal-object';
33

44
export interface ITestHttpRequestOptions {
55
responseType?: 'stream' | 'json' | 'blob';

0 commit comments

Comments
 (0)