| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× 1× 1× 1× | // ISC, Copyright 2017 Jaco Greeff
const { callSignature } = require('./util');
describe('util', () => {
describe('callSignature', () => {
it('formats the signature according to the specification', () => {
expect(
callSignature(
'test_method',
[{ name: 'b', type: 'A' }, { name: 'a', type: 'B' }],
{ type: 'A' }
)
).to.equal('test_method(b: A, a: B) => A');
});
});
});
|