Skip to content

Commit 9f171d7

Browse files
committed
improve test description
1 parent a99a0ee commit 9f171d7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/integration/quota-test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,38 @@ const root = 'accounts-acl/config/templates/new-account/'
88

99
describe('Get Quota', function () {
1010
var prefs = read(path.join(root, 'settings/serverSide.ttl'))
11-
it('Check that the file is readable and has predicate', function () {
11+
it('from file to check that it is readable and has predicate', function () {
1212
expect(prefs).to.be.a('string')
1313
expect(prefs).to.match(/storageQuota/)
1414
})
15-
it('Get the quota', async function () {
15+
it('and check it', async 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 () {
19+
it('with wrong size', async function () {
2020
const quota = await getQuota(path.join('test/resources/', root), 'https://localhost')
2121
expect(quota).to.not.equal(3000)
2222
})
23-
it('Get the quota with non-existant file', async function () {
23+
it('with non-existant file', async function () {
2424
const quota = await getQuota(path.join('nowhere/', root), 'https://localhost')
2525
expect(quota).to.equal(Infinity)
2626
})
27-
it('Get the quota when the predicate is not present', async function () {
27+
it('when the predicate is not present', async function () {
2828
const quota = await getQuota('test/resources/accounts-acl/quota', 'https://localhost')
2929
expect(quota).to.equal(Infinity)
3030
})
3131
})
3232

3333
describe('Check if over Quota', function () {
34-
it('Check the quota', async function () {
34+
it('when it is above', async function () {
3535
const quota = await overQuota(path.join('test/resources/', root), 'https://localhost')
3636
expect(quota).to.be.true
3737
})
38-
it('Check the quota with non-existant file', async function () {
38+
it('with non-existant file', async function () {
3939
const quota = await overQuota(path.join('nowhere/', root), 'https://localhost')
4040
expect(quota).to.be.false
4141
})
42-
it('Check the quota when the predicate is not present', async function () {
42+
it('when the predicate is not present', async function () {
4343
const quota = await overQuota('test/resources/accounts-acl/quota', 'https://localhost')
4444
expect(quota).to.be.false
4545
})

0 commit comments

Comments
 (0)