@@ -178,7 +178,7 @@ describe('GET embed report', () => {
178178
179179 it ( 'should return 500 when get admin user error' , ( done ) => {
180180 const cfg = sinon . stub ( config , 'get' ) ;
181- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
181+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
182182 cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
183183 cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-customer": "/embed/looks/2"}' ) ;
184184 request ( server )
@@ -195,7 +195,7 @@ describe('GET embed report', () => {
195195
196196 it ( 'should return 404 when the project template or product template is not found' , ( done ) => {
197197 const cfg = sinon . stub ( config , 'get' ) ;
198- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
198+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
199199 cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
200200 cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-customer": "/embed/looks/2"}' ) ;
201201 request ( server )
@@ -212,7 +212,7 @@ describe('GET embed report', () => {
212212
213213 it ( 'should return customer url' , ( done ) => {
214214 const cfg = sinon . stub ( config , 'get' ) ;
215- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
215+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
216216 cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
217217 cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' )
218218 . returns ( '{"mock-concrete-customer": "/customer/embed/looks/2"}' ) ;
@@ -245,7 +245,7 @@ describe('GET embed report', () => {
245245
246246 it ( 'should return admin url' , ( done ) => {
247247 const cfg = sinon . stub ( config , 'get' ) ;
248- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
248+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
249249 const getAdmin = sinon . stub ( util , 'getTopcoderUser' , ( ) => ( {
250250 firstName : 'fn' ,
251251 lastName : 'ln' ,
@@ -285,7 +285,7 @@ describe('GET embed report', () => {
285285
286286 it ( 'should return copilot url' , ( done ) => {
287287 const cfg = sinon . stub ( config , 'get' ) ;
288- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
288+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
289289 cfg . withArgs ( 'lookerConfig.USE_MOCK' ) . returns ( false ) ;
290290 cfg . withArgs ( 'lookerConfig.EMBED_REPORTS_MAPPING' ) . returns ( '{"mock-concrete-copilot": "/copilot/embed/looks/2"}' ) ;
291291 request ( server )
@@ -317,7 +317,7 @@ describe('GET embed report', () => {
317317
318318 it ( 'should return admin url for project with product template' , ( done ) => {
319319 const cfg = sinon . stub ( config , 'get' ) ;
320- const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrl ' , ( ) => 'generatedUrl' ) ;
320+ const gem = sinon . stub ( lookerSerivce , 'generateEmbedUrlForProject ' , ( ) => 'generatedUrl' ) ;
321321 const getAdmin = sinon . stub ( util , 'getTopcoderUser' , ( ) => ( {
322322 firstName : 'fn' ,
323323 lastName : 'ln' ,
0 commit comments