1
1
import { Container , ContainerModule } from '@theia/core/shared/inversify' ;
2
- import { expect , assert } from 'chai' ;
2
+ import { assert , expect } from 'chai' ;
3
3
import fetch from 'cross-fetch' ;
4
4
import { v4 } from 'uuid' ;
5
5
import { ArduinoPreferences } from '../../browser/arduino-preferences' ;
@@ -8,9 +8,9 @@ import { CreateApi } from '../../browser/create/create-api';
8
8
import { splitSketchPath } from '../../browser/create/create-paths' ;
9
9
import { Create , CreateError } from '../../browser/create/typings' ;
10
10
import { SketchCache } from '../../browser/widgets/cloud-sketchbook/cloud-sketch-cache' ;
11
+ import { SketchesService } from '../../common/protocol' ;
11
12
import { AuthenticationSession } from '../../node/auth/types' ;
12
13
import queryString = require( 'query-string' ) ;
13
- import { SketchesService } from '../../common/protocol' ;
14
14
15
15
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */
16
16
/* eslint-disable @typescript-eslint/no-non-null-assertion */
@@ -114,6 +114,7 @@ describe('create-api', () => {
114
114
115
115
async function cleanAllSketches ( ) : Promise < void > {
116
116
let sketches = await createApi . sketches ( ) ;
117
+ // Cannot delete the sketches with `await Promise.all` as all delete promise successfully resolve, but the sketch is not deleted from the server.
117
118
await sketches
118
119
. map ( ( { path } ) => createApi . deleteSketch ( path ) )
119
120
. reduce ( async ( acc , curr ) => {
0 commit comments