|
1 |
| -import { Test } from '@nestjs/testing'; |
2 |
| -import { Version, VersionManagerService } from './version-manager.service'; |
3 |
| -import { HttpService } from '@nestjs/common'; |
4 |
| -import { of } from 'rxjs'; |
5 |
| -import { mocked } from 'ts-jest/utils'; |
6 |
| -import { LOGGER } from '../constants'; |
| 1 | +import {Test} from '@nestjs/testing'; |
| 2 | +import {Version, VersionManagerService} from './version-manager.service'; |
| 3 | +import {HttpService} from '@nestjs/common'; |
| 4 | +import {of} from 'rxjs'; |
| 5 | +import {mocked} from 'ts-jest/utils'; |
| 6 | +import {LOGGER} from '../constants'; |
7 | 7 | import * as chalk from 'chalk';
|
8 |
| -import { ConfigService } from './config.service'; |
9 |
| -import { resolve } from 'path'; |
| 8 | +import {ConfigService} from './config.service'; |
| 9 | +import {resolve} from 'path'; |
10 | 10 | import * as os from 'os';
|
11 |
| -import { TestingModule } from '@nestjs/testing/testing-module'; |
| 11 | +import {TestingModule} from '@nestjs/testing/testing-module'; |
12 | 12 |
|
13 | 13 | jest.mock('fs-extra');
|
14 | 14 | // eslint-disable-next-line @typescript-eslint/no-var-requires
|
@@ -450,7 +450,7 @@ describe('VersionManagerService', () => {
|
450 | 450 | });
|
451 | 451 |
|
452 | 452 | it('moves the file to the target location', () => {
|
453 |
| - expect(fs.moveSync).toHaveBeenNthCalledWith(1, '/tmp/generator-cli-abcDEF/4.2.0', `${fixture.storage}/4.2.0.jar`); |
| 453 | + expect(fs.moveSync).toHaveBeenNthCalledWith(1, '/tmp/generator-cli-abcDEF/4.2.0', `${fixture.storage}/4.2.0.jar`, {overwrite: true}); |
454 | 454 | });
|
455 | 455 |
|
456 | 456 | it('receives the data piped', () => {
|
|
0 commit comments