質問編集履歴

5

エラーログを追加

2017/02/10 14:43

投稿

tama2015
tama2015

スコア63

test CHANGED
File without changes
test CHANGED
@@ -161,3 +161,35 @@
161
161
  }
162
162
 
163
163
  ```
164
+
165
+
166
+
167
+
168
+
169
+ エラーログ
170
+
171
+ ```ここに言語を入力
172
+
173
+ LOG: 'status:', undefined
174
+
175
+ Firefox 51.0.0 (Mac OS X 10.10.0) Loginサービスのテスト ログイン成功時のテスト FAILED
176
+
177
+ Failed: {}
178
+
179
+ @js/services/login.service_spec.js:42:9
180
+
181
+ h/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:133:460
182
+
183
+ Hf/this.$get</m.prototype.$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:147:309
184
+
185
+ Hf/this.$get</m.prototype.$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:144:412
186
+
187
+ Hf/this.$get</m.prototype.$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:148:76
188
+
189
+ l@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:101:87
190
+
191
+ rg/</t.onload@https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js:106:489
192
+
193
+ Firefox 51.0.0 (Mac OS X 10.10.0): Executed 7 of 7 (1 FAILED) (1.438 secs / 1.408 secs)
194
+
195
+ ```

4

2017/02/10 14:43

投稿

tama2015
tama2015

スコア63

test CHANGED
File without changes
test CHANGED
@@ -106,8 +106,6 @@
106
106
 
107
107
  login.$login().then(function(value) {
108
108
 
109
- console.log('status NG');
110
-
111
109
  expect(value.status).toEqualTo('XXX');
112
110
 
113
111
  expect(value.message).toEqualTo('XXX');

3

見やすくしました。説明を追記。

2017/02/10 02:10

投稿

tama2015
tama2015

スコア63

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
- 実サーバーを利用した、AngularJSのPOSTのテストを行っていますが、
1
+ 実サーバーを利用した、`AngularJS``POST`のテストを行っていますが、
2
2
 
3
- サーバー側でPOSTの値がとれません。
3
+ サーバー側で`POST`の値がとれません。
4
+
5
+ (問題なく動いているAPIでテストしています。)
4
6
 
5
7
 
6
8
 
@@ -18,7 +20,7 @@
18
20
 
19
21
 
20
22
 
21
- AngularJS
23
+ `AngularJS`
22
24
 
23
25
  ```Javascript
24
26
 
@@ -132,7 +134,7 @@
132
134
 
133
135
 
134
136
 
135
- FuelPHP
137
+ `FuelPHP`
136
138
 
137
139
  ```PHP
138
140
 

2

誤植修正

2017/02/08 15:27

投稿

tama2015
tama2015

スコア63

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  参考サイト
14
14
 
15
- [https://github.com/angular/angular.js/issues/1434](ngMockE2E $httpBackend "passThrough()" doesn't work #1434)
15
+ [ngMockE2E $httpBackend "passThrough()" doesn't work #1434](https://github.com/angular/angular.js/issues/1434)
16
16
 
17
17
 
18
18
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  {
58
58
 
59
- login: { method: 'POST', url: http://hogehoge/login/' }
59
+ login: { method: 'POST', url: 'http://hogehoge/login/' }
60
60
 
61
61
  }
62
62
 

1

誤字修正

2017/02/08 15:22

投稿

tama2015
tama2015

スコア63

test CHANGED
File without changes
test CHANGED
@@ -150,11 +150,11 @@
150
150
 
151
151
  $post = Input::json();
152
152
 
153
- Log::debug(print_r($post, true)); // -> 空の配列
153
+ Log::debug(print_r($post, true)); -> 空の配列
154
154
 
155
- Log::debug('pass:' . $post['pass']); // -> 値は取れない。yyyyyyyyが期待されている。
155
+ Log::debug('pass:' . $post['pass']); -> 値は取れない。yyyyyyyyが期待されている。
156
156
 
157
- Log::debug('userid:' . $post['id']); -> 値は取れない。xxx@yahoo.co.jpが期待されている。
157
+ Log::debug('id:' . $post['id']); -> 値は取れない。xxx@yahoo.co.jpが期待されている。
158
158
 
159
159
  以下略
160
160