Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoss18 committed Mar 7, 2024
1 parent dbbf636 commit 2e497d9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/unit/service/session-service.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import SessionService from "../../../lib/services/session-service";
import TastytradeHttpClient from "../../../lib/services/tastytrade-http-client";
import axios from 'axios'
import {jest} from '@jest/globals';
import nock from 'nock'

jest.mock('axios')

const BaseUrl = 'https://fakeurl.org'

function stubLogin(responseData: any) {
const scope = nock(BaseUrl)
nock(BaseUrl)
.post('/sessions')
.reply(200, responseData)
}
Expand Down Expand Up @@ -65,15 +63,6 @@ describe('loginWithRememberToken', () => {

describe('validate', () => {
const expectedToken = "qFgr7sNaa5XtjRJiDu_efPIfthK_UJ6Wr0OQLyPa_MF-a353CWP5wA+C"
const responseData = {
"data": {
"email": "[email protected]",
"username": "tastyworksmobileapp",
"external-id": "Ubbae143e-4def-4331-bd4f-c3fe51fbf766",
"id": 269
},
"context": "/sessions/validate"
}

it('sets the correct auth token', async function() {
nock(BaseUrl)
Expand Down

0 comments on commit 2e497d9

Please sign in to comment.