Skip to content

Commit 6b993d1

Browse files
committed
Formatting changes
1 parent 15f74ce commit 6b993d1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

samples/sample-app/views/index.pug

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ html
3838
file : file.files[0],
3939
fileName : file.files[0].name || "test_image.jpg",
4040
tags : ["test_tag_1"],
41-
extensions : [{name: "aws-auto-tagging", minConfidence: 80, maxTags: 10}]
41+
//- extensions: [
42+
//- {
43+
//- name: "aws-auto-tagging",
44+
//- minConfidence: 80,
45+
//- maxTags: 10
46+
//- }
47+
//- ],
4248
}, function(err, result) {
4349
if (err) {
4450
statusEl.innerHTML = "Error uploading image. "+ err.message;

test/upload.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const uploadSuccessResponseObj = {
2121
"isPrivateFile": false,
2222
"customCoordinates": null,
2323
"fileType": "image",
24-
"AITags":[{"name":"Face","confidence":99.95,"source":"aws-auto-tagging"},{"name":"Person","confidence":99.95,"source":"aws-auto-tagging"},{"name":"Human","confidence":99.95,"source":"aws-auto-tagging"},{"name":"Boy","confidence":87.6,"source":"aws-auto-tagging"},{"name":"Man","confidence":84.66,"source":"aws-auto-tagging"}],
24+
"AITags":[{"name":"Face","confidence":99.95,"source":"aws-auto-tagging"}],
2525
"extensionStatus":{"aws-auto-tagging":"success"}
2626
};
2727

@@ -363,7 +363,13 @@ describe("File upload", function () {
363363
responseFields: "tags, customCoordinates, isPrivateFile, metadata",
364364
useUniqueFileName: false,
365365
isPrivateFile: true,
366-
extensions: [{name: "aws-auto-tagging", minConfidence: 80, maxTags: 10}],
366+
extensions: [
367+
{
368+
name: "aws-auto-tagging",
369+
minConfidence: 80,
370+
maxTags: 10
371+
}
372+
],
367373
webhookUrl: "https://your-domain/?appId=some-id"
368374
};
369375
var jsonStringifiedExtensions = JSON.stringify(fileOptions.extensions);

0 commit comments

Comments
 (0)