Socket
Socket
Sign inDemoInstall

ember-cli-htmlbars

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-htmlbars - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

test/fixtures/non-standard-extension.handlebars

2

index.js

@@ -22,3 +22,3 @@ var Filter = require('broccoli-filter');

TemplateCompiler.prototype.constructor = TemplateCompiler;
TemplateCompiler.prototype.extensions = ['hbs'];
TemplateCompiler.prototype.extensions = ['hbs', 'handlebars'];
TemplateCompiler.prototype.targetExtension = 'js';

@@ -25,0 +25,0 @@ TemplateCompiler.prototype.processString = function (string, relativePath) {

{
"name": "ember-cli-htmlbars",
"version": "0.4.4",
"version": "0.4.5",
"description": "A library for adding htmlbars to ember CLI",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -58,2 +58,15 @@ 'use strict';

describe('handlebars', function() {
it('compiles .handlebars file', function() {
var tree = templateCompilerFilter(sourcePath);
builder = new broccoli.Builder(tree);
return builder.build().then(function(results) {
var actual = fs.readFileSync(results.directory + '/non-standard-extension.js', { encoding: 'utf8'});
var source = fs.readFileSync(sourcePath + '/non-standard-extension.handlebars', { encoding: 'utf8' });
var expected = 'export default Ember.Handlebars.template(' + handlbarsTemplateCompiler.precompile(source, false) + ')';
assert.equal(actual,expected,'They dont match!')
});
});
function assertOutput(results) {

@@ -60,0 +73,0 @@ var actual = fs.readFileSync(results.directory + '/template.js', { encoding: 'utf8'});

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc