var assert = chai.assert;

describe("the contact list",function(){
	beforeEach(function(){
		module('AddressBook');
		
	})
	
	it('should return an array of contacts',
		inject(function(contactService){
			var contacts = contactService.getContacts();
			assert.isArray(contacts);
		}
	));
})
@@ -18,16 +18,42 @@
 .assert;
+%0Avar expect = chai.expect;
 %0A%0Adescri
@@ -60,24 +60,27 @@
 be(%22
-the c
+The C
 ontact 
-list
+Service
 %22,fu
@@ -312,8 +312,640 @@
 %0A%09));%0A%7D)
+;%0A%0Adescribe(%22The Contact List Controller%22,function()%7B%0A%09beforeEach(function()%7B%0A%09%09module('AddressBook');%09%0A%09%7D);%0A%09%0A%09it('should get a copy of the contact list on startup and store it in $scope',%0A%09%09inject(function($rootScope,$controller,contactService)%7B%0A%09%09%09/* Create a new scope that we can assign as the controllers scope. By keeping a reference to it, we can run tests. */%0A%09%09%09var $scope = $rootScope.$new();%0A%09%09%09var contactListController = $controller(%22ContactList%22,%7B$scope:$scope%7D);%0A%09%09%09var contacts = $scope.contacts;%0A%09%09%09expect(contacts).to.be.an('array');%0A%09%09%09expect(contacts).to.deep.equal(contactService.getContacts());%0A%09%09%7D%0A%09));%0A%0A%0A%7D)%0A

add test for controller