Bram's Dev Blog

home

100 Days of Code Day 82 - Angular Testing

15 Nov 2018

Adding console.log entries to see when my before each methods are triggering

Yesterday ended with a part of my testbed component not being decently initialized. I’m adding console log statements to make sure that the before each method successfully completes before tests are executed.

Instead of the two different before each methods, I’m also only using one anymore, where I have isolated the second piece into a then() call.

Dependency injection

The place where it goes wrong, I believe, is where the component relies on its own dependency injection, versus the dependency injection that comes from the testbed module.

This Angular CLI discussion seems related, but i’m reading too many things I still don’t understand fully.

Day 83 Plan

Continue trying to get rest of the tests to work.

Future days - DSpace 7 Angular

Future days - Analyzer.atmire.com work

Future Days - Productivity

Future days - Jekyll http://bram-atmire.github.io/ site

Future Days - Atmire.com work

Investigate and work on search engine optimization (SEO) for the main atmire.com website.

Future Days - Learning just for learning

Sustainability challenge - Finish before Christmas

If I continue like October, I could hit day 68 by end of October and day 98 by end of November.