angular-breadcrumb icon indicating copy to clipboard operation
angular-breadcrumb copied to clipboard

Make the chore compliant with recent Node & NPM versions

Open OnkelTem opened this issue 10 years ago • 1 comments

@ncuillery Would you provide some guidelines on running tests? Currently testing just doesn't work: node v.0.12.7, npm 3.3.5

After I managed to install karma and jasmine with dependencies (there was a bunch of UNMET PEER DEPENDENCY error messages) and ran the tests (finally), I got loads of error messags:

PhantomJS 1.9.8 (Linux) - Simple conf:
PhantomJS 1.9.8 (Linux)         must have some states defined FAILED
PhantomJS 1.9.8 (Linux)         allows state transition in test FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Sample conf:
PhantomJS 1.9.8 (Linux)         must have some states defined FAILED
PhantomJS 1.9.8 (Linux)         allows state transition in test FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Ui-router's sample conf:
PhantomJS 1.9.8 (Linux)         must have some states defined FAILED
PhantomJS 1.9.8 (Linux)         allows state transition in test FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with basic conf:
PhantomJS 1.9.8 (Linux)         renders the correct state chain FAILED
PhantomJS 1.9.8 (Linux)         should work with one state FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with dynamic parent conf:
PhantomJS 1.9.8 (Linux)         should use the custom breadcrumb's parent property referencing a variable of the scope FAILED
PhantomJS 1.9.8 (Linux)         should ignore the custom breadcrumb's parent property if it is a function returning undefined FAILED
PhantomJS 1.9.8 (Linux)         deals with url params correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with interpolation conf:
PhantomJS 1.9.8 (Linux)         interpolates labels correctly FAILED
PhantomJS 1.9.8 (Linux)         deals with further updates of the scope FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Last step directive with basic conf:
PhantomJS 1.9.8 (Linux)         - without template:
PhantomJS 1.9.8 (Linux)                 renders the last step label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - with template:
PhantomJS 1.9.8 (Linux)                 renders the template correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Last step directive with interpolation conf:
PhantomJS 1.9.8 (Linux)         interpolates labels correctly FAILED
PhantomJS 1.9.8 (Linux)         deals with further updates of the scope FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Last step directive with sample conf:
PhantomJS 1.9.8 (Linux)         interpolates "room.detail" label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with multiple-interpolation conf:
PhantomJS 1.9.8 (Linux)         - when ncyBreadcrumbIgnore is undefined on parent view scope:
PhantomJS 1.9.8 (Linux)                 - when the parent view located before child view :
PhantomJS 1.9.8 (Linux)                         renders the correct state chain and views content FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)                 - when the parent view located after child view :
PhantomJS 1.9.8 (Linux)                         renders the incorrect state chain FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - when ncyBreadcrumbIgnore property equals true on parent view scope:
PhantomJS 1.9.8 (Linux)                 - when the parent view located before child view :
PhantomJS 1.9.8 (Linux)                         renders the correct state chain and views content FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)                 - when the parent view located after child view :
PhantomJS 1.9.8 (Linux)                         renders the correct state chain and views content FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with object parent conf:
PhantomJS 1.9.8 (Linux)         should handle parents provided by object reference FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive with sample conf:
PhantomJS 1.9.8 (Linux)         interpolates "room.detail" label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Breadcrumb directive:
PhantomJS 1.9.8 (Linux)         - uses default template (bootstrap3):
PhantomJS 1.9.8 (Linux)                 correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - uses bootstrap2 template:
PhantomJS 1.9.8 (Linux)                 correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - uses custom template:
PhantomJS 1.9.8 (Linux)                 correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - uses custom template with html binding:
PhantomJS 1.9.8 (Linux)                 correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Text directive with separator with basic conf:
PhantomJS 1.9.8 (Linux)         - without template:
PhantomJS 1.9.8 (Linux)                 renders the text label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - with template:
PhantomJS 1.9.8 (Linux)                 renders the template correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Text directive with basic conf:
PhantomJS 1.9.8 (Linux)         - without template:
PhantomJS 1.9.8 (Linux)                 renders the text label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - with template:
PhantomJS 1.9.8 (Linux)                 renders the template correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Text directive with interpolation conf:
PhantomJS 1.9.8 (Linux)         interpolates labels correctly FAILED
PhantomJS 1.9.8 (Linux)         deals with further updates of the scope FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Text directive with sample conf:
PhantomJS 1.9.8 (Linux)         interpolates "room.detail" label correctly FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - The scope:
PhantomJS 1.9.8 (Linux)         00A is older than 001 FAILED
PhantomJS 1.9.8 (Linux)         010 is older than 00Y FAILED
PhantomJS 1.9.8 (Linux)         01P is older than 010 FAILED
PhantomJS 1.9.8 (Linux)         FOO is older than BAR FAILED
PhantomJS 1.9.8 (Linux)         F00 is older than BAR FAILED
PhantomJS 1.9.8 (Linux)         0000 is older than ZZZ FAILED
PhantomJS 1.9.8 (Linux)         (newly created) is always older than the precedent one FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Service with abstract conf:
PhantomJS 1.9.8 (Linux)         - with default options:
PhantomJS 1.9.8 (Linux)                 should have a 2-step route to C state FAILED
PhantomJS 1.9.8 (Linux)                 should have a 2-step route to F state FAILED
PhantomJS 1.9.8 (Linux)                 should return a one step chain to G.H FAILED
PhantomJS 1.9.8 (Linux)                 should return a two step route to I.J FAILED
PhantomJS 1.9.8 (Linux)                 should return a one step chain to K.L FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux)         - with abstract state inclusion:
PhantomJS 1.9.8 (Linux)                 should have a 3-step route to C state FAILED
PhantomJS 1.9.8 (Linux)                 should have a 3-step route to F state FAILED
PhantomJS 1.9.8 (Linux)                 should still return a one step chain to G.H (state-level option skip is priority) FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Service with basic conf:
PhantomJS 1.9.8 (Linux)         must be defined FAILED
PhantomJS 1.9.8 (Linux)         should have a 3-step route to C state FAILED
PhantomJS 1.9.8 (Linux)         should work also with "parent" state's property FAILED
PhantomJS 1.9.8 (Linux)         must build a correct link for each steps FAILED
PhantomJS 1.9.8 (Linux)         should not return the step for E state FAILED
PhantomJS 1.9.8 (Linux)         should have a 5-step route to F state (E skipped) FAILED
PhantomJS 1.9.8 (Linux)         should return an empty array for skipped G FAILED
PhantomJS 1.9.8 (Linux)         should return a one step chain to G.H FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Service with dynamic parent conf:
PhantomJS 1.9.8 (Linux)         must be defined FAILED
PhantomJS 1.9.8 (Linux)         should use the custom breadcrumb's parent property for D.E.F (a string) FAILED
PhantomJS 1.9.8 (Linux)         should use the custom breadcrumb's parent property for D.E.G (a function) FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Service with sample conf:
PhantomJS 1.9.8 (Linux)         generate a unique step for the "home" state FAILED
PhantomJS 1.9.8 (Linux)         generate three steps for the "room" state FAILED
PhantomJS 1.9.8 (Linux)         generate four steps for the "room.detail" state FAILED
PhantomJS 1.9.8 (Linux)         generate four steps for the "room.detail.edit" state with working links FAILED
PhantomJS 1.9.8 (Linux)         must build a correct link for each steps FAILED
PhantomJS 1.9.8 (Linux) 
PhantomJS 1.9.8 (Linux) - Service with ui-router's sample conf:
PhantomJS 1.9.8 (Linux)         generate a unique step for the "home" state FAILED
PhantomJS 1.9.8 (Linux)         generate two steps for the "contacts.list" state FAILED
PhantomJS 1.9.8 (Linux)         generate three steps for the "contacts.detail" state FAILED
PhantomJS 1.9.8 (Linux)         generate four steps for the "contacts.detail.item" state FAILED
PhantomJS 1.9.8 (Linux)         generate five steps for the "contacts.detail.item.edit" state with working links FAILED
PhantomJS 1.9.8 (Linux): Executed 71 of 71 (71 FAILED) ERROR (0.399 secs / 0.05 secs)
<snip>

OnkelTem avatar Dec 03 '15 15:12 OnkelTem

node 0.12 and/or npm 3 is a clue, I suppose. I had to make the build working with recent node & npm version.

Tests currently works with 0.10: https://travis-ci.org/ncuillery/angular-breadcrumb#L89

ncuillery avatar Dec 05 '15 14:12 ncuillery