@@ -42,20 +42,20 @@ function getSample (filename) {
42
42
bucket : sinon . stub ( ) . returns ( bucket )
43
43
} ;
44
44
const StorageMock = sinon . stub ( ) . returns ( storageMock ) ;
45
- var safeSearchDetectionStub = sinon . stub ( )
45
+ var safeSearchDetectionStub = sinon . stub ( ) ;
46
46
safeSearchDetectionStub . withArgs ( `gs://${ bucketName } /${ safeFilename } ` ) . returns ( Promise . resolve ( [ {
47
- safeSearchAnnotation : {
48
- adult : 'VERY_LIKELY' ,
49
- violence : 'VERY_LIKELY'
50
- }
47
+ safeSearchAnnotation : {
48
+ adult : 'VERY_LIKELY' ,
49
+ violence : 'VERY_LIKELY'
50
+ }
51
51
} ] ) ) ;
52
52
safeSearchDetectionStub . withArgs ( `gs://${ bucketName } /${ unsafeFilename } ` ) . returns ( Promise . resolve ( [ {
53
- safeSearchAnnotation : {
54
- adult : 'VERY_UNLIKELY' ,
55
- violence : 'VERY_UNLIKELY'
56
- }
53
+ safeSearchAnnotation : {
54
+ adult : 'VERY_UNLIKELY' ,
55
+ violence : 'VERY_UNLIKELY'
56
+ }
57
57
} ] ) ) ;
58
- var imageAnnotatorClientStub = sinon . stub ( vision , " ImageAnnotatorClient" ) ;
58
+ var imageAnnotatorClientStub = sinon . stub ( vision , ' ImageAnnotatorClient' ) ;
59
59
imageAnnotatorClientStub . returns ( {
60
60
safeSearchDetection : safeSearchDetectionStub
61
61
} ) ;
@@ -84,7 +84,7 @@ function getSample (filename) {
84
84
85
85
test . beforeEach ( tools . stubConsole ) ;
86
86
test . afterEach . always ( tools . restoreConsole ) ;
87
- test . afterEach . always ( function ( ) {
87
+ test . afterEach . always ( function ( ) {
88
88
vision . ImageAnnotatorClient . restore ( ) ;
89
89
} ) ;
90
90
@@ -114,9 +114,9 @@ test.serial(`blurOffensiveImages blurs images`, async (t) => {
114
114
test . serial ( `blurOffensiveImages ignores safe images` , async ( t ) => {
115
115
const sample = getSample ( unsafeFilename ) ;
116
116
await sample . program . blurOffensiveImages ( {
117
- data : {
117
+ data : {
118
118
bucket : bucketName ,
119
- name : unsafeFilename
119
+ name : unsafeFilename
120
120
}
121
121
} ) ;
122
122
t . is ( console . log . callCount , 2 ) ;
0 commit comments