From 2e82d63152da85bfeceb345845bb80b36eddd9d4 Mon Sep 17 00:00:00 2001 From: Sassoun Derderian Date: Wed, 16 Jun 2021 13:52:20 +0400 Subject: [PATCH] fix: revert mocha tests --- test/Api.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Api.spec.ts b/test/Api.spec.ts index 413d3cc8..a94415ff 100644 --- a/test/Api.spec.ts +++ b/test/Api.spec.ts @@ -15,11 +15,11 @@ */ import * as should from 'should' -import {Api} from '../' +import {NodeApi} from '../src/node' describe('Create new instance for API', function () { it('should have methods', function () { - const api = new Api({url: 'http://localhost'}) + const api = new NodeApi({url: 'http://localhost'}) should(api.copy).be.a.Function().and.has.lengthOf(5) should(api.count).be.a.Function().and.has.lengthOf(2) should(api.create).be.a.Function().and.has.lengthOf(3) @@ -41,17 +41,17 @@ describe('Create new instance for API', function () { }) it('should set correct API path based on passed configuration (version is passed)', function () { - const api = new Api({url: 'http://localhost', version: '2.0'}) + const api = new NodeApi({url: 'http://localhost', version: '2.0'}) should(api._httpOptions.path).equal('/attask/api/v2.0') }) it('should set correct API path based on passed configuration (version is not passed)', function () { - const api = new Api({url: 'http://localhost'}) + const api = new NodeApi({url: 'http://localhost'}) should(api._httpOptions.path).equal('/attask/api-internal') }) it('should set correct API path based on passed configuration (version="asp")', function () { - const api = new Api({url: 'http://localhost', version: 'asp'}) + const api = new NodeApi({url: 'http://localhost', version: 'asp'}) should(api._httpOptions.path).equal('/attask/api-asp') }) })