Tag: grunt contrib jasmine

未find本地Npm模块“grunt-template-jasmine-istanbul”

这里是我的gruntconfiguration文件 – https://github.com/mdarif/JavaScript-Boilerplate/blob/1.3/GruntFile.js 它不会加载模块 – grunt-template-jasmine-istanbul并且Local Npm module "grunt-template-jasmine-istanbul" not found. Is it installed? Local Npm module "grunt-template-jasmine-istanbul" not found. Is it installed? 加载类似require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);的grunt任务require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); 希望有人能帮忙快点!

茉莉间谍document.execCommand不被调用

我写这样的testing describe('execCommand', function () { it('should call document.execCommand', function () { spyOn(document, 'execCommand').and.callThrough(); expect(document.execCommand).toHaveBeenCalledWith('foreColor', false, 'red'); document.execCommand('foreColor', false, 'red'); }); }); 但它失败Expected spy execCommand to have been called with [ 'foreColor', false, 'red' ] but it was never called. 我不知道为什么 请帮忙。 注意:我使用grunt-contrib-jasmine 0.9.2来运行它

安装grunt-contrib-jasmine时出错

当我尝试用这个命令安装它时: npm install grunt-contrib-jasmine –save-dev …我得到一个错误: npm WARN package.json grunt-contrib-connect@0.3.0没有README数据 npm WARN package.json karma-chrome-launcher@0.1.7没有README数据 npm WARN package.json karma-firefox-launcher@0.4.4没有README数据 npm WARN package.json karma-phantomjs-launcher@0.4.4没有README数据 npm WARN package.json http-proxy@1.0.0没有版本库字段。 npm WARN package.json uglify-js@2.2.5'repositories'(复数)不支持。 >请select一个作为'资料库'栏位/phantomjs@1.9.17安装C:\ Users \ Garrarufa \ Documents \ WebstormWorkspace \ website \ node_modules \ grunt-contr ib-jasmine \ node_modules \ grunt-lib-phantomjs \ node_modules \ phantomjs 节点install.js 已经可以在C:\ […]