Skip to content

Commit

Permalink
tests: move tests to dev
Browse files Browse the repository at this point in the history
Signed-off-by: andrew <[email protected]>
  • Loading branch information
andrewxhill committed Feb 14, 2020
1 parent 54fe791 commit 6c10464
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/__test__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ import { Client } from '@textile/threads-client'
import { expect } from 'chai'
import { API } from '../index'

const API_TOKEN = `${process.env.TXTL_JS_TEST_TOKEN}`
const DEVICE_ID = `77d6b032-4f5c-11ea-b77f-2e728ce88125`

describe('API', function() {
let api: API
let client: Client
describe('create new instance', () => {
it('it should create a new API instance', async () => {
api = new API({
token: API_TOKEN,
deviceId: DEVICE_ID,
dev: false,
token: 'API_TOKEN',
deviceId: 'DEVICE_ID',
dev: true,
})
await api.start()
expect(api).to.not.be.undefined
Expand Down

0 comments on commit 6c10464

Please sign in to comment.