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

10 lines
291 B
JavaScript

var Package = require('dgeni').Package;
module.exports = function mockPackage() {
return new Package('mockPackage', [require('../'), require('dgeni-packages/nunjucks')])
// provide a mock log service
.factory('log', function() { return require('dgeni/lib/mocks/log')(false); });
};