Commit 9360f99d authored by Clement Brizard's avatar Clement Brizard

Merge branch 'fix-software-tests' into 'master'

fix: describe software services tests

See merge request tx-techno-num/impactometre!14
parents ec35b3ab 9a44aaae
......@@ -5,48 +5,50 @@ const assert = require('assert')
const softwareDatabase = require('../../../../model/database/meeting/software')
const Software = require('../../../../model/classes/Software')
describe('#getInboundBandwith()', () => {
const renavisio = new Software(softwareDatabase.RENAVISIO)
it('should return the unique available value', () => {
assert.strictEqual(
renavisio.getInboundBandwith('RENAVISIO'),
1080
)
})
describe('Software services', () => {
describe('#getInboundBandwith()', () => {
const renavisio = new Software(softwareDatabase.RENAVISIO)
it('should return the unique available value', () => {
assert.strictEqual(
renavisio.getInboundBandwith('RENAVISIO'),
1080
)
})
it('should return the unique available value even if number of participants specified', () => {
assert.strictEqual(
renavisio.getInboundBandwith(3),
1080
)
})
it('should return the unique available value even if number of participants specified', () => {
assert.strictEqual(
renavisio.getInboundBandwith(3),
1080
)
})
const skype = new Software(softwareDatabase.SKYPE)
it('should return the matching available (minimum bound) value', () => {
assert.strictEqual(
skype.getInboundBandwith(2, 'minimum'),
30
)
})
const skype = new Software(softwareDatabase.SKYPE)
it('should return the matching available (minimum bound) value', () => {
assert.strictEqual(
skype.getInboundBandwith(2, 'minimum'),
30
)
})
it('should return the matching available ideal bound value when no bound specified', () => {
assert.strictEqual(
skype.getInboundBandwith(2),
1050
)
})
it('should return the matching available ideal bound value when no bound specified', () => {
assert.strictEqual(
skype.getInboundBandwith(2),
1050
)
})
it('should return the closest greater available (ideal bound) value', () => {
assert.strictEqual(
skype.getInboundBandwith(4, 'ideal'),
4000
)
})
it('should return the closest greater available (ideal bound) value', () => {
assert.strictEqual(
skype.getInboundBandwith(4, 'ideal'),
4000
)
})
it('should return the last available value if participants number is greater than available values', () => {
assert.strictEqual(
skype.getInboundBandwith(8, 'ideal'),
8000
)
it('should return the last available value if participants number is greater than available values', () => {
assert.strictEqual(
skype.getInboundBandwith(8, 'ideal'),
8000
)
})
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment