Skip to content

Commit 2ebd8ad

Browse files
committed
Add a negative test
1 parent 889ed4a commit 2ebd8ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration/quota-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ describe('Get Quota', function () {
1616
const quota = await getQuota(path.join('test/resources/', root), 'https://localhost')
1717
expect(quota).to.equal(2000)
1818
})
19+
it('Get the quota with wrong size', async function () {
20+
const quota = await getQuota(path.join('test/resources/', root), 'https://localhost')
21+
expect(quota).to.not.equal(3000)
22+
})
1923
it('Get the quota with non-existant file', async function () {
2024
const quota = await getQuota(path.join('nowhere/', root), 'https://localhost')
2125
expect(quota).to.equal(Infinity)

0 commit comments

Comments
 (0)