Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: removes no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar authored and Roman committed May 18, 2020
1 parent 6743b9c commit 15c7990
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/unit/mws.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** This test includes sanity checks only, for integration tests check out the /test/integration folder */

/* eslint-disable no-unused-expressions */
import { amazonMarketplaces } from '@scaleleap/amazon-marketplaces'

import { HttpClient, MWS } from '../../src'
Expand All @@ -22,21 +21,18 @@ const mockMws = new MWS(

describe(`${MWS.name}`, () => {
it('instantiates the sellers section only once', () => {
expect.assertions(1)

mockMws.sellers
mockMws.sellers
expect.assertions(3)

expect(mockMws.sellers).toBeInstanceOf(Sellers)
expect(mockMws.sellers).toBeInstanceOf(Sellers)
expect(Sellers).toHaveBeenCalledTimes(1)
})

it('instantiates the orders section only once', () => {
expect.assertions(1)

mockMws.orders
mockMws.orders
expect.assertions(3)

expect(mockMws.orders).toBeInstanceOf(Orders)
expect(mockMws.orders).toBeInstanceOf(Orders)
expect(Orders).toHaveBeenCalledTimes(1)
})
})
/* eslint-enable no-unused-expressions */

0 comments on commit 15c7990

Please sign in to comment.