|
1 |
| -describe('서비스 단위 테스트', function() { |
| 1 | +describe('Service unit testing', function() { |
2 | 2 | beforeEach(module('myApp.services'));
|
3 | 3 |
|
4 |
| - describe('버전 서비스 테스트', function() { |
5 |
| - it('현재 버전 반환', inject(function(version) { |
| 4 | + describe('Version testing', function() { |
| 5 | + it('current version', inject(function(version) { |
6 | 6 | expect(version).toEqual('0.1');
|
7 | 7 | }));
|
8 | 8 | });
|
9 | 9 | });
|
10 | 10 |
|
11 | 11 |
|
12 | 12 | /* 컨트롤러 단위 테스트 */
|
13 |
| -describe('controllers 단위 테스트', function(){ |
| 13 | +describe('controllers unit test', function(){ |
14 | 14 | beforeEach(module('myApp.services'));
|
15 | 15 | var scope;
|
16 |
| - it('MyCtrl1 컨트롤러 test1값', inject(function($rootScope, $controller) { |
| 16 | + it('MyCtrl1 controller test1', inject(function($rootScope, $controller) { |
17 | 17 | scope = $rootScope.$new();
|
18 | 18 | var ctrl = $controller('MyCtrl1', {
|
19 | 19 | $scope : scope
|
20 | 20 | });
|
21 | 21 | expect(scope.test1).toBe('EFG');
|
22 | 22 | }));
|
23 |
| - it('MyCtrl2 컨트롤러 test2값', inject(function($rootScope, $controller) { |
| 23 | + it('MyCtrl2 controller test2', inject(function($rootScope, $controller) { |
24 | 24 | scope = $rootScope.$new();
|
25 | 25 | var ctrl = $controller('MyCtrl2', {
|
26 | 26 | $scope : scope
|
27 | 27 | });
|
28 |
| - // expect(scope.test2()).toBe('안녕히계세요!!'); |
29 |
| - expect(scope.test2()).toBe('안녕하세요!'); |
| 28 | + expect(scope.test2()).toBe('Hello!'); |
30 | 29 | }));
|
31 | 30 |
|
32 | 31 | it('setFirstAndRestSentence Dummy', inject(function($rootScope, $controller) {
|
|
0 commit comments