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.
21 lines
612 B
TypeScript
21 lines
612 B
TypeScript
import path from 'path';
|
|
|
|
import { readFileSync } from 'fs-extra';
|
|
import { isEmpty } from 'lodash';
|
|
|
|
describe('Updater', () => {
|
|
it.skip('isUpdateAvailable', () => {});
|
|
|
|
it('package.json target are correct', () => {
|
|
const content = readFileSync(
|
|
path.join(__dirname, '..', '..', '..', '..', '..', 'package.json')
|
|
);
|
|
|
|
if (!content || isEmpty(content) || !content.includes('"target": ["deb", "rpm", "freebsd"],')) {
|
|
throw new Error(
|
|
'Content empty or does not contain the target on a single line. They have to be for the linux appImage build to pass.'
|
|
);
|
|
}
|
|
});
|
|
});
|