Skip to content

Commit

Permalink
Fix sourcemap test
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Dec 27, 2014
1 parent 0a9fc17 commit b764fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe('source-map', function() {
equal(!!template.map, !CompilerContext.browser);
});
it('should map source properly', function() {
var template = ' b{{hello}} \n {{bar}}a {{#block arg hash=(subex 1 subval)}}{{/block}}';
template = Handlebars.precompile(template, {destName: 'dest.js', srcName: 'src.hbs'});
var source = ' b{{hello}} \n {{bar}}a {{#block arg hash=(subex 1 subval)}}{{/block}}',
template = Handlebars.precompile(source, {destName: 'dest.js', srcName: 'src.hbs'});

if (template.map) {
var consumer = new SourceMapConsumer(template.map),
Expand Down

0 comments on commit b764fb1

Please sign in to comment.