Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert.equal(collection.views['d.hbs'].contents.toString(), 'foo bar baz');
});
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.views['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.views['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on item keys', function() {
collection.addItem('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.items['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on item keys', function() {
collection.addItem('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.items['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on item keys', function() {
collection.addItem('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.items['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.views['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.views['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on item keys', function() {
collection.addItem('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.items['d.hbs'].contents.toString() === 'foo bar baz');
});
it('should use a custom rename key function on view keys', function() {
collection.addView('a/b/c/d.hbs', {content: 'foo bar baz'});
assert(collection.views['d.hbs'].contents.toString() === 'foo bar baz');
});