@@ -3,6 +3,7 @@ import { StubResourceRecord } from "../tests/stubs/stub-resource-record";
33import { Factory } from "rosie" ;
44import { AxiosResponse } from "axios" ;
55import { FactoryType } from "../tests/factories/factory-type" ;
6+ import { FactoryType as AndcultureCodeFactoryType } from "andculturecode-javascript-testing" ;
67import { ResultRecord } from "../view-models/result-record" ;
78import "jest-extended" ;
89
@@ -37,7 +38,7 @@ describe("ServiceUtils", () => {
3738 test ( "when response.data is undefined, it returns the mapped resultObject as undefined" , ( ) => {
3839 // Arrange
3940 const axiosResponse = Factory . build < AxiosResponse > (
40- FactoryType . AxiosResponse ,
41+ AndcultureCodeFactoryType . AxiosResponse ,
4142 { data : undefined }
4243 ) ;
4344
@@ -54,7 +55,7 @@ describe("ServiceUtils", () => {
5455 test ( "when response.data is null, it returns the mapped resultObject as undefined" , ( ) => {
5556 // Arrange
5657 const axiosResponse = Factory . build < AxiosResponse > (
57- FactoryType . AxiosResponse ,
58+ AndcultureCodeFactoryType . AxiosResponse ,
5859 { data : null }
5960 ) ;
6061
@@ -71,7 +72,7 @@ describe("ServiceUtils", () => {
7172 test ( "when response.data.resultObject is undefined, it returns the mapped resultObject as undefined" , ( ) => {
7273 // Arrange
7374 const axiosResponse = Factory . build < AxiosResponse > (
74- FactoryType . AxiosResponse ,
75+ AndcultureCodeFactoryType . AxiosResponse ,
7576 {
7677 data : {
7778 resultObject : undefined ,
@@ -92,7 +93,7 @@ describe("ServiceUtils", () => {
9293 test ( "when response.data.resultObject is null, it returns the mapped resultObject as undefined" , ( ) => {
9394 // Arrange
9495 const axiosResponse = Factory . build < AxiosResponse > (
95- FactoryType . AxiosResponse ,
96+ AndcultureCodeFactoryType . AxiosResponse ,
9697 {
9798 data : {
9899 resultObject : null ,
@@ -113,7 +114,7 @@ describe("ServiceUtils", () => {
113114 test ( "it returns rowCount as 1" , ( ) => {
114115 // Arrange
115116 const axiosResponse = Factory . build < AxiosResponse > (
116- FactoryType . AxiosResponse
117+ AndcultureCodeFactoryType . AxiosResponse
117118 ) ;
118119
119120 // Act
@@ -129,7 +130,7 @@ describe("ServiceUtils", () => {
129130 test ( "it returns the mapped status from the original response" , ( ) => {
130131 // Arrange
131132 const axiosResponse = Factory . build < AxiosResponse > (
132- FactoryType . AxiosResponse
133+ AndcultureCodeFactoryType . AxiosResponse
133134 ) ;
134135
135136 // Act
@@ -145,7 +146,7 @@ describe("ServiceUtils", () => {
145146 test ( "it returns result as a ResultRecord" , ( ) => {
146147 // Arrange
147148 const axiosResponse = Factory . build < AxiosResponse > (
148- FactoryType . AxiosResponse
149+ AndcultureCodeFactoryType . AxiosResponse
149150 ) ;
150151
151152 // Act
@@ -191,7 +192,7 @@ describe("ServiceUtils", () => {
191192 test ( "when response.data is undefined, it returns the mapped resultObjects as undefined" , ( ) => {
192193 // Arrange
193194 const axiosResponse = Factory . build < AxiosResponse > (
194- FactoryType . AxiosResponse ,
195+ AndcultureCodeFactoryType . AxiosResponse ,
195196 { data : undefined }
196197 ) ;
197198
@@ -208,7 +209,7 @@ describe("ServiceUtils", () => {
208209 test ( "when response.data is null, it returns the mapped resultObjects as undefined" , ( ) => {
209210 // Arrange
210211 const axiosResponse = Factory . build < AxiosResponse > (
211- FactoryType . AxiosResponse ,
212+ AndcultureCodeFactoryType . AxiosResponse ,
212213 { data : null }
213214 ) ;
214215
@@ -225,7 +226,7 @@ describe("ServiceUtils", () => {
225226 test ( "when response.data.resultObject is undefined, it returns the mapped resultObjects as undefined" , ( ) => {
226227 // Arrange
227228 const axiosResponse = Factory . build < AxiosResponse > (
228- FactoryType . AxiosResponse ,
229+ AndcultureCodeFactoryType . AxiosResponse ,
229230 {
230231 data : {
231232 resultObject : undefined ,
@@ -246,7 +247,7 @@ describe("ServiceUtils", () => {
246247 test ( "when response.data.resultObject is null, it returns the mapped resultObjects as undefined" , ( ) => {
247248 // Arrange
248249 const axiosResponse = Factory . build < AxiosResponse > (
249- FactoryType . AxiosResponse ,
250+ AndcultureCodeFactoryType . AxiosResponse ,
250251 {
251252 data : {
252253 resultObject : null ,
@@ -271,7 +272,7 @@ describe("ServiceUtils", () => {
271272 2
272273 ) ;
273274 const axiosResponse = Factory . build < AxiosResponse > (
274- FactoryType . AxiosResponse ,
275+ AndcultureCodeFactoryType . AxiosResponse ,
275276 {
276277 data : {
277278 resultObject : resultObject ,
@@ -292,7 +293,7 @@ describe("ServiceUtils", () => {
292293 test ( "it returns the mapped status from the original response" , ( ) => {
293294 // Arrange
294295 const axiosResponse = Factory . build < AxiosResponse > (
295- FactoryType . AxiosResponse
296+ AndcultureCodeFactoryType . AxiosResponse
296297 ) ;
297298
298299 // Act
@@ -308,7 +309,7 @@ describe("ServiceUtils", () => {
308309 test ( "it returns results as a ResultRecord" , ( ) => {
309310 // Arrange
310311 const axiosResponse = Factory . build < AxiosResponse > (
311- FactoryType . AxiosResponse
312+ AndcultureCodeFactoryType . AxiosResponse
312313 ) ;
313314
314315 // Act
0 commit comments