1- ///**
1+ // /**
22// * Copyright 2022 Google LLC
33// *
44// * Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,8 +18,8 @@ const Helpers = require('./helpers');
1818const SlidesCreateSheetsChart = require ( '../slides_create_sheets_chart' ) ;
1919
2020// Replace with your test spreadsheets id and charts id
21- const CHART_ID = 1337053199
22- const DATA_SPREADSHEET_ID = '1yFjePIkeZ7lgtwnuTzVIHGGGPkdc5MRbp2wF3Er0xMc'
21+ const CHART_ID = 1337053199 ;
22+ const DATA_SPREADSHEET_ID = '1yFjePIkeZ7lgtwnuTzVIHGGGPkdc5MRbp2wF3Er0xMc' ;
2323
2424describe ( 'Presentation snippets' , ( ) => {
2525 const helpers = new Helpers ( ) ;
@@ -29,15 +29,15 @@ describe('Presentation snippets', () => {
2929 } ) ;
3030
3131 it ( 'should CreateSheetsChart' , ( async ( ) => {
32- const presentationId = await helpers . createTestPresentation ( ) ;
33- const pageIds = await helpers . addSlides ( presentationId , 1 , 'BLANK' ) ;
34- const pageId = pageIds [ 0 ] ;
35- const response = await SlidesCreateSheetsChart . createSheetsChart ( presentationId , pageId ,
36- DATA_SPREADSHEET_ID ,
37- CHART_ID ) ;
38- expect ( 1 ) . toEqual ( response . replies . length ) ;
39- const chartId = response . replies [ 0 ] . createSheetsChart . objectId ;
40- expect ( chartId ) . toExist ( ) ;
41- } ) ) ;
32+ const presentationId = await helpers . createTestPresentation ( ) ;
33+ const pageIds = await helpers . addSlides ( presentationId , 1 , 'BLANK' ) ;
34+ const pageId = pageIds [ 0 ] ;
35+ const response = await SlidesCreateSheetsChart . createSheetsChart ( presentationId , pageId ,
36+ DATA_SPREADSHEET_ID ,
37+ CHART_ID ) ;
38+ expect ( 1 ) . toEqual ( response . replies . length ) ;
39+ const chartId = response . replies [ 0 ] . createSheetsChart . objectId ;
40+ expect ( chartId ) . toExist ( ) ;
41+ } ) ) ;
4242} ) ;
4343
0 commit comments