UNPKG

fex

Version:

A simple command line interface that helps you develop and test Angularjs project.

15 lines (13 loc) 577 B
'use strict' describe "unit:<%- moduleName %>",()-> scope= null controller= null beforeEach ()-> module "<%- moduleName %>" return describe '<%- componentPrefix ? componentPrefix+"HomeController":"homeController" %>',()-> beforeEach inject ($rootScope, $controller)-> scope = $rootScope.$new() controller= $controller '<%- componentPrefix ? componentPrefix+"HomeController":"homeController" %>','$scope':scope it " $scope.demo should be FEX ",()-> expect(scope.demo).toBe 'FEX'