diff --git a/spec/artifacts/source.map.amd.js b/spec/artifacts/source.map.amd.txt
similarity index 100%
rename from spec/artifacts/source.map.amd.js
rename to spec/artifacts/source.map.amd.txt
diff --git a/spec/expected/source.map.amd.js b/spec/expected/source.map.amd.js
index 847397628..1f010db73 100644
--- a/spec/expected/source.map.amd.js
+++ b/spec/expected/source.map.amd.js
@@ -1,2 +1,2 @@
define(["handlebars.runtime"],function(e){var t=(e=e.default).template;return(e.templates=e.templates||{}).test=t({compiler:[8,">= 4.3.0"],main:function(e,t,a,n,i){return"
1
"},useData:!0})});
-//# sourceMappingURL=./spec/artifacts/source.map.amd.js
\ No newline at end of file
+//# sourceMappingURL=./spec/artifacts/source.map.amd.txt
\ No newline at end of file
diff --git a/tasks/test-bin.js b/tasks/test-bin.js
index c2a0bf866..5d3e9927a 100644
--- a/tasks/test-bin.js
+++ b/tasks/test-bin.js
@@ -155,7 +155,7 @@ const testCases = [
'-N',
'test',
'--map',
- './spec/artifacts/source.map.amd.js'
+ './spec/artifacts/source.map.amd.txt'
],
outputLocation: 'stdout',
expectedOutputSpec: './spec/expected/source.map.amd.js'
@@ -165,10 +165,15 @@ const testCases = [
module.exports = function(grunt) {
grunt.registerTask('test:bin', function() {
testCases.forEach(
- ({ binInputParameters, outputLocation, expectedOutputSpec, expectedOutput }) => {
+ ({
+ binInputParameters,
+ outputLocation,
+ expectedOutputSpec,
+ expectedOutput
+ }) => {
const stdout = executeBinHandlebars(...binInputParameters);
-
- if( !expectedOutput && expectedOutputSpec){
+
+ if (!expectedOutput && expectedOutputSpec) {
expectedOutput = fs.readFileSync(expectedOutputSpec, 'utf-8');
}
@@ -190,7 +195,6 @@ module.exports = function(grunt) {
);
}
);
-
});
};