1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 09:24:35 +00:00

style: lint

This commit is contained in:
Mihajlo Medjedovic
2021-02-23 22:36:32 +01:00
parent c7e54cfe9f
commit 4b28ee8e73
2 changed files with 20 additions and 14 deletions

View File

@@ -9,13 +9,15 @@ describe('ContextManager', () => {
dotenv.config()
const sampleLogResponse = {
"items": [{
"attributes": {},
"createdBy": "fake creator",
"id": "fakeId",
"name": "Compute Context To Delete",
"version": 2,
}]
items: [
{
attributes: {},
createdBy: 'fake creator',
id: 'fakeId',
name: 'Compute Context To Delete',
version: 2
}
]
}
const contextManager = new ContextManager(

View File

@@ -26,19 +26,23 @@ describe('SessionManager', () => {
}
const sampleLogResponse = {
"links": [],
"name": "SYSJOBID",
"ok": true,
"scope": "GLOBAL",
"value": "25218",
"version": 1,
links: [],
name: 'SYSJOBID',
ok: true,
scope: 'GLOBAL',
value: '25218',
version: 1
}
mockedAxios.get.mockImplementation(() =>
Promise.resolve({ data: sampleResponse })
)
const expectedResponse = { etag: '', result: sampleResponse, log: sampleLogResponse}
const expectedResponse = {
etag: '',
result: sampleResponse,
log: sampleLogResponse
}
await expect(
sessionManager.getVariable(