Skip to content

Commit 028e292

Browse files
author
Alex Alvarez
committed
Removing empty import
1 parent 4403fea commit 028e292

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ember-qunit-codemod.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ module.exports = function(file, api, options) {
116116
emberQUnitImports
117117
.get('specifiers')
118118
.replace(Array.from(emberQUnitSpecifiers).map(s => j.importSpecifier(j.identifier(s))));
119+
120+
// If we have an empty import, remove the import declaration
121+
if (emberQUnitSpecifiers.size === 0) {
122+
emberQUnitImports.remove();
123+
}
119124
}
120125

121126
function updateEmberTestHelperImports() {

0 commit comments

Comments
 (0)