Comments (7)
I open changeRequest with a fix for this
from angular-multimocks.
Hey @omer72,
Thanks for your PR, I have added a few comments.
from angular-multimocks.
@nabil-boag I fixed what you asked, I didn't wrote a test since I couldn't run the current tests, they all failed
from angular-multimocks.
Can you provide more details about what is going wrong with running tests? What environment are you running in? What is your OS? What node version do you have?
from angular-multimocks.
$ grunt build test
Running "jshint:source" (jshint) task
>> 11 files lint free.
Running "jscs:source" (jscs) task
>> 11 files without code style errors.
Running "clean:build" (clean) task
Cleaning "app/build"...OK
Running "copy:build" (copy) task
Created 5 directories, copied 15 files
Running "karma:headless_unit" (karma) task
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Linux 0.0.0)]: Connected on socket dxWYn_ZTXdKBQPtxzBAx with id 25048316
..............................
PhantomJS 1.9.8 (Linux 0.0.0): Executed 30 of 30 SUCCESS (0.059 secs / 0.043 secs)
Done, without errors.
from angular-multimocks.
ruuning on Windows 7 Professional
D:\workspace\git\dev\angular-multimocks>grunt build test
Running "jshint:source" (jshint) task
11 files lint free.
Running "jscs:source" (jscs) task
Invalid line break at Gruntfile.js :
1 |/* global module, require /
------------------------------------^
2 |
3 |module.exports = function (grunt) {
Invalid line break at karma-unit.conf.js :
1 |/ global module /
---------------------------^
2 |
3 |// Karma configuration
Invalid line break at app/src/demo/Gruntfile.js :
1 |/ globals module /
----------------------------^
2 |
3 |module.exports = function (grunt) {
Invalid line break at app/src/demo/mockOutput.js :
1 |/ global angular /
----------------------------^
2 |
3 |angular
Invalid line break at app/src/js/multimocks.responseDelay.js :
1 |/ global angular /
----------------------------^
2 |
3 |angular
Invalid line break at app/src/js/multimocks.responseDelay.spec.js :
1 |/ global describe, beforeEach, jasmine, module, inject, it, expect /
------------------------------------------------------------------------------^
2 |
3 |describe('multimocks.responseDelay', function () {
Invalid line break at app/src/js/multimocks.spec.js :
1 |/ global describe, beforeEach, jasmine, module, inject, it, expect /
------------------------------------------------------------------------------^
2 |
3 |describe('multimocks', function () {
Invalid line break at tasks/plugins.js :
1 |/ global module, require /
------------------------------------^
2 |
3 |module.exports = {
Invalid line break at tasks/writeMultimocks.js :
1 |/ global require, module, process /
---------------------------------------------^
2 |
3 |module.exports = function (grunt) {
Invalid line break at tasks/plugins/hal.js :
1 |/ global module, require */
------------------------------------^
2 |
3 |var _ = require('lodash');
10 code style errors found!
Warning: Task "jscs:source" failed. Use --force to continue.
Aborted due to warnings.
from angular-multimocks.
It looks like you are having some issues with JSCS.
What version of jscs are you running?
Type npm view jscs version
to find out.
While you sort that out, you can stop JSCS from running by commenting out line 19 in Gruntfile.js
grunt.registerTask('build', [
'jshint',
// 'jscs', <-- Comment this out
'clean:build',
'copy:build'
]);
This should allow the project to build. You can then run gunt build test
from angular-multimocks.
Related Issues (17)
- Make headers configurable HOT 1
- Provide demo app HOT 2
- Grunt multimocks task should clear destination file/folder before writing HOT 1
- A console error should be raised when a scenario is not found HOT 2
- grunt workflow:dev should open the demo app HOT 3
- Tests for Grunt task
- Easily disable API delayed responses HOT 3
- Let scenarios be composable from other scenarios HOT 4
- Provide an out of the box directive that lists multimock scenarios inc links
- Make multimocks work with lodash v3 HOT 4
- Move the Scenario menu component into tempo-scenario HOT 2
- Gulp File HOT 2
- responseDelay only seems to have effect on successful mocked requests HOT 2
- Provide gulp task for multimocks HOT 1
- 0.6.8 HOT 6
- Grunt task should take config option to enable HAL-specific functionality HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-multimocks.