Skip to content

Commit

Permalink
Fix for jest unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkopp committed Dec 20, 2022
1 parent 6158fb6 commit 1e6d9a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { AircraftVersionChecker } from './AircraftVersionChecker';

describe('BuildInfo.getVersionInfo()', () => {
describe('AircraftVersionChecker.getVersionInfo()', () => {
it('should throw error on malformed version info strings.', () => {
expect(() => AircraftVersionChecker.getVersionInfo('v0.0.0master.00000000')).toThrow();
expect(() => AircraftVersionChecker.getVersionInfo('v0.0.0-master.012345678')).toThrow();
Expand Down
2 changes: 1 addition & 1 deletion src/instruments/src/EFB/Utils/AircraftVersionChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Compare from 'semver/functions/compare';
import { CommitInfo, GitVersions, ReleaseInfo } from '@flybywiresim/api-client';
// jest in test-js.sh requires relative path can't handle "@shared" alias
// noinspection ES6PreferShortImport
import { PopUp } from '../../../../shared/src/PopUp';
import { PopUp } from '../../../../shared/src/popup';

/**
* Contains the a32nx_build_info.json file's information in a structured way.
Expand Down

0 comments on commit 1e6d9a9

Please sign in to comment.