Skip to content

Commit

Permalink
Merge pull request #8 from oibioib/feat/add-tests-for-sellTickets
Browse files Browse the repository at this point in the history
feat: add tests for sellTickets
  • Loading branch information
natein authored Feb 5, 2025
2 parents 6fec7ac + b47fa05 commit 4bbf141
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/objects-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ describe('objects-tasks', () => {
queue: [25, 100],
expected: false,
},
{
queue: [25, 25, 25, 100],
expected: true,
},
{
queue: [25, 25, 25, 25, 50, 100, 50],
expected: true,
},
].forEach((data) => {
assert.equal(tasks.sellTickets(data.queue), data.expected);
});
Expand Down

0 comments on commit 4bbf141

Please sign in to comment.