johnpapa / angular-styleguide

Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.
http://johnpapa.net
MIT License
23.91k stars 4.16k forks source link

AngularJS-UnitTesting | Weather App | Karma #868

Open sahilgupta3 opened 4 years ago

sahilgupta3 commented 4 years ago

Hi Experts,

Can you please help me correcting the AngularJS-UnitTesting with Karma

describe('Unit Test', function() { beforeEach(module('ourAppApp')); var $controller;

beforeEach(inject(function($controller){ $controller = $controller; })); describe('Do not remove', function() { it('Check 1', function() { expect(1).toBe(1); }); it('Check 2', function() { expect(1).toBe(1); }); }); });