@@ -4,9 +4,9 @@ import * as firebaseFunctions from 'firebase-functions';
44import * as firebaseAdmin from 'firebase-admin' ;
55
66import { verifyJwtAndTransferResultToTrustedLocation } from './verify-and-copy-report' ;
7- import { convertGoldenImagesToData } from './image_data ' ;
8- import { convertTestImageDataToFiles } from './data_image ' ;
9- import { copyTestImagesToGoldens } from './test_goldens ' ;
7+ import { copyGoldImagesToDatabase } from './image-data ' ;
8+ import { writeTestImagesToFiles } from './data-image ' ;
9+ import { copyTestImagesToGoldens } from './test-goldens ' ;
1010import { updateGithubStatus } from './github' ;
1111
1212/**
@@ -99,15 +99,15 @@ export let testResults = firebaseFunctions.database.ref(testResultsPath)
9999 */
100100const imageDataToFilePath = `${ imagePath } /{dataType}/{filename}` ;
101101export let imageDataToFile = firebaseFunctions . database . ref ( imageDataToFilePath )
102- . onWrite ( convertTestImageDataToFiles ) ;
102+ . onWrite ( writeTestImagesToFiles ) ;
103103
104104/**
105105 * Copy valid goldens from storage /goldens/ to database /screenshot/goldens/
106106 * so we can read the goldens without credentials.
107107 */
108108export let goldenImageToData = firebaseFunctions . storage . bucket (
109109 firebaseFunctions . config ( ) . firebase . storageBucket ) . object ( ) . onChange ( ( event : any ) => {
110- return convertGoldenImagesToData ( event . data . name , event . data . resourceState , event . data . bucket ) ;
110+ return copyGoldImagesToDatabase ( event . data . name , event . data . resourceState , event . data . bucket ) ;
111111} ) ;
112112
113113/**
0 commit comments