Skip to content

Commit 7e55c5e

Browse files
committed
Update test to new task structure
1 parent 8bcfea0 commit 7e55c5e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lambdas/inspect/audio.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export async function inspect(task, filePath) {
5656
}
5757

5858
const tags = probe.format?.tags;
59-
console.log(JSON.stringify({ tags: tags }));
6059
// Find tags in the format section that match MatchTags from the task
6160
if (tags && task.IncludeMetadata) {
6261
var keysRegex = null;
@@ -75,8 +74,6 @@ export async function inspect(task, filePath) {
7574
// use each regex to extract only the matching tags
7675
Object.keys(tags).forEach((key) => {
7776
const val = tags[key];
78-
console.log(JSON.stringify({ key: key, val: val }));
79-
8077
if (keysRegex && keysRegex.test(key)) {
8178
inspection.Tags[key] = val;
8279
} else if (valuesRegex && valuesRegex.test(val)) {

test/unit/lambdas/InspectLambdaFunction.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ test("Inspect an audio file for tags", async () => {
2828
},
2929
Task: {
3030
Type: "Inspect",
31-
MatchTags: "AIS_AD_BREAK_",
31+
IncludeMetadata: {
32+
Values: {
33+
StringIncludes: "AIS_AD_BREAK_",
34+
},
35+
},
3236
},
3337
},
3438
{

0 commit comments

Comments
 (0)