File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1818import * as Dockerode from 'dockerode' ;
1919import * as JSONStream from 'JSONStream' ;
2020import * as _ from 'lodash' ;
21- import * as fs from 'mz/ fs' ;
21+ import { promises as fs } from 'fs' ;
2222import * as path from 'path' ;
2323import * as stream from 'node:stream' ;
2424import * as tar from 'tar-stream' ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import * as crypto from 'crypto';
1818import type * as Dockerode from 'dockerode' ;
1919import * as t from 'io-ts' ;
2020import * as _ from 'lodash' ;
21- import { fs } from 'mz ' ;
21+ import { promises as fs } from 'fs ' ;
2222import * as path from 'path' ;
2323import * as tar from 'tar-stream' ;
2424
Original file line number Diff line number Diff line change 4242 "@types/lodash" : " ^4.17.20" ,
4343 "@types/memoizee" : " ^0.4.12" ,
4444 "@types/mocha" : " ^10.0.10" ,
45- "@types/mz" : " ^2.7.9" ,
4645 "@types/node" : " ^20.19.17" ,
4746 "@types/proxyquire" : " ^1.3.31" ,
4847 "@types/semver" : " ^7.7.1" ,
7574 "klaw" : " ^4.1.0" ,
7675 "lodash" : " ^4.17.21" ,
7776 "memoizee" : " ^0.4.17" ,
78- "mz" : " ^2.7.0" ,
7977 "p-map" : " ^4.0.0" ,
8078 "semver" : " ^7.7.2" ,
8179 "tar-stream" : " ^3.1.7" ,
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717import { expect } from 'chai' ;
18- import { fs } from 'mz ' ;
18+ import * as fs from 'fs ' ;
1919import * as Compose from '@balena/compose-parser' ;
2020import * as os from 'os' ;
2121import * as path from 'path' ;
@@ -35,11 +35,11 @@ describe('Container contracts', () => {
3535
3636 before ( async ( ) => {
3737 defaultCompositionPath = path . join ( os . tmpdir ( ) , 'default-composition.yml' ) ;
38- await fs . writeFile ( defaultCompositionPath , defaultComposition ( ) ) ;
38+ await fs . promises . writeFile ( defaultCompositionPath , defaultComposition ( ) ) ;
3939 } ) ;
4040
4141 after ( async ( ) => {
42- await fs . unlink ( defaultCompositionPath ) ;
42+ await fs . promises . unlink ( defaultCompositionPath ) ;
4343 } ) ;
4444
4545 it ( 'should correctly extract container contracts' , async ( ) => {
You can’t perform that action at this time.
0 commit comments