angular-docs-cn/tools/api-builder/target-package/mocks/mockPackage.js

12 lines
312 B
JavaScript
Raw Normal View History

2015-11-06 16:40:30 -05:00
var Package = require('dgeni').Package;
module.exports = function mockPackage() {
return new Package('mockPackage', [require('../')])
// provide a mock log service
.factory('log', function() { return require('dgeni/lib/mocks/log')(false); })
.factory('templateEngine', function() { return {}; });
};