Skip to content

Commit

Permalink
Downstream test: revert AssetGraph workaround
Browse files Browse the repository at this point in the history
The workaround is not necessary anymore (solved in AssetGraph itself).

Refs jquery#1665
Closes jquerygh-1676
ariya committed Dec 17, 2016
1 parent 7f7f2e1 commit f50573e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/downstream.js
Original file line number Diff line number Diff line change
@@ -53,24 +53,6 @@ function workaroundRecastTest() {
execute('git diff');
}

function workaroundAssetGraphTest() {
var filename = 'package.json', lines, i, line;

console.log();
console.log('Applying a workaround...');
lines = fs.readFileSync(filename, 'utf-8').split('\n');
for (i = 0; i < lines.length; ++i) {
line = lines[i];
if (line.indexOf('"eslint":') > 0) {
console.log('-- Patching', filename);
lines[i] = '"eslint": "~3.3.1",';
fs.writeFileSync(filename, lines.join('\n'));
break;
}
}
execute('git diff');
}

function test_project(project, repo) {
console.log();
console.log('==========', project);
@@ -86,8 +68,6 @@ function test_project(project, repo) {

if (project === 'recast') {
workaroundRecastTest();
} else if (project === 'assetgraph') {
workaroundAssetGraphTest();
}

console.log();

0 comments on commit f50573e

Please sign in to comment.