Skip to content

Commit

Permalink
Revert "Basic support for unit testing added yeoman#759"
Browse files Browse the repository at this point in the history
This reverts commit 0b05190.
  • Loading branch information
UlisesGascon committed Jun 5, 2019
1 parent 0b05190 commit 99d135e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
9 changes: 2 additions & 7 deletions app/templates/babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"presets": [
["@babel/preset-env", {
"sourceType": "unambiguous",
"targets": {
"esmodules": true
}
}]
"@babel/preset-env"
]
}
}
4 changes: 0 additions & 4 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ <h1>'Allo, 'Allo!</h1>
<%_ } -%>
<!-- endbuild -->
<!-- build:js scripts/main.js -->
<%_ if (includeUnit) { -%>
<script type="module" src="scripts/main.js"></script>
<%_ } else { -%>
<script src="scripts/main.js"></script>
<%_ } -%>
<!-- endbuild -->
</body>
</html>
10 changes: 1 addition & 9 deletions app/templates/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<%_ if (includeUnit) { -%>
export function greeting() {
return '\'Allo \'Allo!';
}

console.log(greeting());
<%_ } else { -%>
console.log('\'Allo \'Allo!');
<%_ } -%>
console.log('\'Allo \'Allo!');

<%_ if (includeBootstrap) { -%>
// Uncomment to enable Bootstrap tooltips
Expand Down

0 comments on commit 99d135e

Please sign in to comment.