This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registerPaint('pixels', class { | |
static get inputProperties() { return ['--size', '--art']; } | |
paint(ctx, geom, properties) { | |
const size = properties.get('--size').toString(); | |
const art = JSON.parse(properties.get('--art').toString()); | |
Object.keys(art).forEach(index => { | |
const row = art[index]; | |
Object.keys(row).forEach(index2 => { | |
const column = row[index2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<p> {{ message }} </p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import component from './home.view.js'; // this includes the home.view.js file and creates an angular 1.5 component below | |
const module = angular.module('app.shell.modules.home', []); | |
module.component('shellHome', component); | |
export default module.name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should return objects', function () { | |
var backend = { transfer: sandbox.stub() }; | |
var stub2 = sandbox.stub(repository, 'getMails').returns([ | |
{id: 123, to: '[email protected]', body: 'aaaa...'}, | |
{id: 123, to: '[email protected]', body: 'bbb...'} | |
]); | |
mailSystem.transferEuriMails(backend); | |
expect(stub2).to.have.been.called; |