How to use the default function from assert
Find comprehensive JavaScript assert.default code examples handpicked from public code repositorys.
52 53 54 55 56 57 58 59 60 61
for (const bucketEntry of result.Contents || []) { if (bucketEntry.Size === 0) { log.error(new Error(`Got empty file: "${bucketEntry.Key}"`)); continue; } assert_1.default.ok(bucketEntry.Key); const matches = bucketEntry.Key.match(/([^/]+).json$/); if (matches === null) { log.error(new Error(`Got weird filename in manifest listing: "${bucketEntry.Key}"`)); continue;
3
4
15
+ 8 other calls in file
assert.equal is the most popular function in assert (3580 examples)