@@ -6,10 +6,10 @@ import { Dataset } from '../src/evaluation/dataset';
66import  {  Score  }  from  '../src/evaluation/score' ; 
77import  {  sleep  }  from  './utils' ; 
88
9- describe ( 'End to end tests for the SDK' ,  function ( )  { 
9+ describe ( 'End to end tests for the SDK' ,  function   ( )  { 
1010  let  client : LiteralClient ; 
1111
12-   beforeAll ( function ( )  { 
12+   beforeAll ( function   ( )  { 
1313    const  url  =  process . env . LITERAL_API_URL ; 
1414    const  apiKey  =  process . env . LITERAL_API_KEY ; 
1515
@@ -20,7 +20,7 @@ describe('End to end tests for the SDK', function() {
2020    client  =  new  LiteralClient ( {  apiKey,  apiUrl : url  } ) ; 
2121  } ) ; 
2222
23-   it ( 'should test user' ,  async  function ( )  { 
23+   it ( 'should test user' ,  async  function   ( )  { 
2424    const  identifier  =  `test_user_${ uuidv4 ( ) }  ; 
2525    const  user  =  await  client . api . createUser ( identifier ,  {  foo : 'bar'  } ) ; 
2626
@@ -47,7 +47,7 @@ describe('End to end tests for the SDK', function() {
4747    expect ( deletedUser ) . toBeUndefined ( ) ; 
4848  } ) ; 
4949
50-   it ( 'should test generation' ,  async  function ( )  { 
50+   it ( 'should test generation' ,  async  function   ( )  { 
5151    const  generation  =  await  client . api . createGeneration ( { 
5252      provider : 'test' , 
5353      model : 'test' , 
@@ -66,7 +66,7 @@ describe('End to end tests for the SDK', function() {
6666    expect ( generations . data [ 0 ] . id ) . toBe ( generation . id ) ; 
6767  } ) ; 
6868
69-   it ( 'should test thread with a single argument' ,  async  function ( )  { 
69+   it ( 'should test thread with a single argument' ,  async  function   ( )  { 
7070    const  thread  =  await  client . api . upsertThread ( { 
7171      threadId : uuidv4 ( ) , 
7272      name : 'name' , 
@@ -90,14 +90,11 @@ describe('End to end tests for the SDK', function() {
9090
9191    await  client . api . deleteThread ( thread . id ) ; 
9292
93-     // We have to await 5 seconds for the thread to disappear from the cache 
94-     await  sleep ( 5000 ) ; 
95- 
9693    const  deletedThread  =  await  client . api . getThread ( thread . id ) ; 
9794    expect ( deletedThread ) . toBeNull ( ) ; 
9895  } ) ; 
9996
100-   it ( 'should test thread (deprecated)' ,  async  function ( )  { 
97+   it ( 'should test thread (deprecated)' ,  async  function   ( )  { 
10198    const  thread  =  await  client . api . upsertThread ( 
10299      uuidv4 ( ) , 
103100      'name' , 
@@ -130,7 +127,7 @@ describe('End to end tests for the SDK', function() {
130127    expect ( deletedThread ) . toBeNull ( ) ; 
131128  } ) ; 
132129
133-   it ( 'should test export thread' ,  async  function ( )  { 
130+   it ( 'should test export thread' ,  async  function   ( )  { 
134131    const  thread  =  await  client . api . upsertThread ( { 
135132      threadId : uuidv4 ( ) , 
136133      name : 'test' , 
@@ -166,7 +163,7 @@ describe('End to end tests for the SDK', function() {
166163    expect ( deletedThread ) . toBeNull ( ) ; 
167164  } ) ; 
168165
169-   it ( 'should test run' ,  async  function ( )  { 
166+   it ( 'should test run' ,  async  function   ( )  { 
170167    const  step  =  await  client 
171168      . run ( { 
172169        name : 'test' , 
@@ -197,7 +194,7 @@ describe('End to end tests for the SDK', function() {
197194    expect ( deletedStep ) . toBeNull ( ) ; 
198195  } ) ; 
199196
200-   it ( 'should test step' ,  async  function ( )  { 
197+   it ( 'should test step' ,  async  function   ( )  { 
201198    const  thread  =  await  client . thread ( {  id : uuidv4 ( )  } ) ; 
202199    const  step  =  await  thread 
203200      . step ( { 
@@ -231,7 +228,7 @@ describe('End to end tests for the SDK', function() {
231228    expect ( deletedStep ) . toBeNull ( ) ; 
232229  } ) ; 
233230
234-   it ( 'should test steps' ,  async  function ( )  { 
231+   it ( 'should test steps' ,  async  function   ( )  { 
235232    const  thread  =  await  client . thread ( {  id : uuidv4 ( )  } ) ; 
236233
237234    const  step  =  await  thread 
@@ -266,7 +263,7 @@ describe('End to end tests for the SDK', function() {
266263    await  client . api . deleteThread ( thread . id ) ; 
267264  } ) ; 
268265
269-   it ( 'should test score' ,  async  function ( )  { 
266+   it ( 'should test score' ,  async  function   ( )  { 
270267    const  thread  =  await  client . thread ( {  id : uuidv4 ( )  } ) ; 
271268    const  step  =  await  thread 
272269      . step ( { 
@@ -306,7 +303,7 @@ describe('End to end tests for the SDK', function() {
306303    await  client . api . deleteThread ( thread . id ) ; 
307304  } ) ; 
308305
309-   it ( 'should test scores' ,  async  function ( )  { 
306+   it ( 'should test scores' ,  async  function   ( )  { 
310307    const  thread  =  await  client . thread ( {  id : uuidv4 ( )  } ) ; 
311308    const  step  =  await  thread 
312309      . step ( { 
0 commit comments