Preslav's Thoughts and Ramblings


  • 06 May 2017

    Testing React Native Applications Part I: Jest

    When I started with React Native not long ago I was frustrated by the overwhelming amount of irrelevant information on how to test React applications. React is known to evolve fast, often introducing breaking changes, so this should not be surprising to most developers. Still, the amount of deprecated content...

  • 22 August 2015

    ngMock Helpers

    Let’s take a controller test straight out of the Angular JS Docs: describe('PasswordController', function() { beforeEach(module('app')); var $controller; beforeEach(inject(function(_$controller_){ // The injector unwraps the underscores (_) from around the parameter names when matching $controller = _$controller_; })); describe('$scope.grade', function() { it('sets the strength to "strong"...