Skip to content

Commit

Permalink
Theme tests timesout often. Fixes #276
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Sep 22, 2021
1 parent c48bd68 commit a3454be
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,64 +71,6 @@ describe('test code generator', function () {
runResult.assertFile(allFileNames);
}

it('theme import', function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withPrompts({
type: 'ext-colortheme',
themeImportType: 'import-keep',
themeURL: 'http://www.monokai.nl/blog/wp-content/asdev/Monokai.tmTheme',
name: 'testTheme',
displayName: 'Test Theme',
description: 'My TestTheme',
themeName: 'Green',
themeBase: 'vs-dark',
}) // Mock the prompt answers
.toPromise().then(runResult => {
const expectedPackageJSON = {
"name": "testTheme",
"displayName": "Test Theme",
"description": "My TestTheme",
"version": "0.0.1",
"engines": {
"vscode": engineVersion
},
"categories": [
"Themes"
],
"contributes": {
"themes": [{
"label": "Green",
"uiTheme": "vs-dark",
"path": "./themes/Green-color-theme.json"
}]
}
};
const expectedColorTheme = {
"name": "Green",
"colors": {
"editor.background": "#272822",
"editorCursor.foreground": "#F8F8F0",
"editor.foreground": "#F8F8F2",
"editor.lineHighlightBackground": "#3E3D32",
"editor.selectionBackground": "#49483E",
"editorWhitespace.foreground": "#3B3A32"
},
"tokenColors": "./Monokai.tmTheme"
};
try {
assertFiles(runResult, 'testTheme', ['themes/Green-color-theme.json', 'themes/Monokai.tmTheme']);

runResult.assertJsonFileContent('testTheme/package.json', expectedPackageJSON);
runResult.assertJsonFileContent('testTheme/themes/Green-color-theme.json', expectedColorTheme);

done();
} catch (e) {
done(e);
}

}, done);
});

it('theme import from file', function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withPrompts({
Expand Down

0 comments on commit a3454be

Please sign in to comment.