You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1014 B
TypeScript
31 lines
1014 B
TypeScript
import path from 'path';
|
|
|
|
import { readFileSync } from 'fs-extra';
|
|
import { isEmpty } from 'lodash';
|
|
import { expect } from 'chai';
|
|
import { enableLogRedirect } from '../../../test-utils/utils';
|
|
|
|
describe('Updater', () => {
|
|
it.skip('isUpdateAvailable', () => {});
|
|
|
|
it('package.json target is correct', () => {
|
|
const content = readFileSync(
|
|
path.join(__dirname, '..', '..', '..', '..', '..', 'package.json')
|
|
);
|
|
|
|
// the CI for building release relies on this being set to build the different targets.
|
|
if (!content || isEmpty(content) || !content.includes('"target": ["deb"],')) {
|
|
throw new Error(
|
|
'Content empty or does not contain the target on a single line. They have to be for the linux CI builds to pass.'
|
|
);
|
|
}
|
|
});
|
|
|
|
it('stubWindowLog is set to false before pushing', () => {
|
|
expect(enableLogRedirect).to.be.eq(
|
|
false,
|
|
'If you see this message, just set `enableLogRedirect` to false in `ts/test/test-utils/utils/stubbing.ts'
|
|
);
|
|
});
|
|
});
|