@@ -178,7 +178,7 @@ describe('GET embed report', () => {
178
178
179
179
it ( 'should return 500 when get admin user error' , ( done ) => {
180
180
const cfg = sinon . stub ( config , 'get' ) ;
181
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
181
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
182
182
cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
183
183
cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-customer": "/embed/looks/2"}' ) ;
184
184
request ( server )
@@ -195,7 +195,7 @@ describe('GET embed report', () => {
195
195
196
196
it ( 'should return 404 when the project template or product template is not found' , ( done ) => {
197
197
const cfg = sinon . stub ( config , 'get' ) ;
198
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
198
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
199
199
cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
200
200
cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-customer": "/embed/looks/2"}' ) ;
201
201
request ( server )
@@ -212,7 +212,7 @@ describe('GET embed report', () => {
212
212
213
213
it ( 'should return customer url' , ( done ) => {
214
214
const cfg = sinon . stub ( config , 'get' ) ;
215
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
215
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
216
216
cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
217
217
cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' )
218
218
. returns ( '{"mock-concrete-customer": "/customer/embed/looks/2"}' ) ;
@@ -245,7 +245,7 @@ describe('GET embed report', () => {
245
245
246
246
it ( 'should return admin url' , ( done ) => {
247
247
const cfg = sinon . stub ( config , 'get' ) ;
248
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
248
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
249
249
const getAdmin = sinon . stub ( util , 'getTopcoderUser' , ( ) => ( {
250
250
firstName : 'fn' ,
251
251
lastName : 'ln' ,
@@ -285,7 +285,7 @@ describe('GET embed report', () => {
285
285
286
286
it ( 'should return copilot url' , ( done ) => {
287
287
const cfg = sinon . stub ( config , 'get' ) ;
288
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
288
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
289
289
cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
290
290
cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-copilot": "/copilot/embed/looks/2"}' ) ;
291
291
request ( server )
@@ -317,7 +317,7 @@ describe('GET embed report', () => {
317
317
318
318
it ( 'should return admin url for project with product template' , ( done ) => {
319
319
const cfg = sinon . stub ( config , 'get' ) ;
320
- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
320
+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
321
321
const getAdmin = sinon . stub ( util , 'getTopcoderUser' , ( ) => ( {
322
322
firstName : 'fn' ,
323
323
lastName : 'ln' ,
0 commit comments