My PIA in Development

Pain In my Ass

Tuesday, March 15, 2016

When it comes across circular-dependency

Refer to Circular Dependency in constructors and Dependency Injection
I have to quote this:
To find out which one it is, list all of the methods in your class B used by class A, and all the methods in your class B used by class A. The shorter of the two lists is your hidden Class C.
Posted by YGG at 2:49 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: AngularJS

Wednesday, March 9, 2016

Share mocks between Protractor and Karma unit-test

TL;DR

Just follow this post:
Using Browserify To Enhance Your AngularJS Tests
And change all module in your test code to angular.mock.module, then it's good to go

Read more »
Posted by YGG at 5:06 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: AngularJS, E2E-Test, Karma, Protractor, Unit Test
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2019 (11)
    • ►  May (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (3)
    • ►  January (3)
  • ►  2018 (5)
    • ►  December (3)
    • ►  November (2)
  • ▼  2016 (9)
    • ►  May (1)
    • ►  April (2)
    • ▼  March (2)
      • When it comes across circular-dependency
      • Share mocks between Protractor and Karma unit-test
    • ►  February (3)
    • ►  January (1)
  • ►  2015 (2)
    • ►  December (2)

About Me

YGG
View my complete profile
Travel theme. Theme images by Xaviarnau. Powered by Blogger.