Blame view

js/lib/JSBuilder/src/generators/model/templates/ModelSpec.js 308 Bytes
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
Ext.generator.Model.templates.ModelSpec = new Ext.XTemplate(
    'describe("A {name}", function() {\n',
    '    var {name} = Ext.ModelManager.getModel("{name}"),\n',
    '        instance;\n\n',
    '    beforeEach(function() {\n',
    '        instance = new {name}({});\n',
    '    });\n\n',
    '});'
);