bruno/packages/bruno-js/src/test-results.js
2023-02-08 01:13:21 +05:30

19 lines
269 B
JavaScript

const { nanoid } = require('nanoid');
class TestResults {
constructor() {
this.results = [];
}
addResult(result) {
result.uid = nanoid();
this.results.push(result);
}
getResults() {
return this.results;
}
}
module.exports = TestResults;