Skip to content

Commit 52cd876

Browse files
committed
add test to verify that tags are added to results
1 parent 69d5bc2 commit 52cd876

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/bson-bench/test/unit/task.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ describe('Task', function () {
215215
operation: 'deserialize',
216216
warmup: 1,
217217
iterations: 1,
218-
options
218+
options,
219+
tags: ['test', 'test2']
219220
});
220221

221222
task.result = {
@@ -231,6 +232,10 @@ describe('Task', function () {
231232
expect(results.info).to.haveOwnProperty('args');
232233
});
233234

235+
it('returns the tags in the info.tags field', function () {
236+
expect(results.info.tags).to.deep.equal(['test', 'test2']);
237+
});
238+
234239
it('returns options provided in constructor in the info.args field', function () {
235240
expect(results.info.args).to.haveOwnProperty('warmup');
236241
expect(results.info.args).to.haveOwnProperty('iterations');

0 commit comments

Comments
 (0)