Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
params: [{
name: 'a',
type: {type: Syntax.NumericLiteralType, value: 'number'}
}]
})
).to.be.eql(
'new Test(a: <code>number</code>)'
)
expect(
u.signature({
kind: 'function',
name: 'test',
params: [{
name: 'a',
type: {type: Syntax.NumericLiteralType, value: 'number'}
}],
returns: [{
type: {type: Syntax.NumericLiteralType, value: 'number'}
}]
})
).to.be.eql(
'test(a: <code>number</code>): <code>number</code>'
)
expect(
u.signature({
kind: 'property',
name: 'test',
tags: [{
title: 'type',
type: {type: Syntax.NumericLiteralType, value: 'number'}
it('signature', () => {
expect(
u.signature({
kind: 'class',
name: 'Test',
params: [{
name: 'a',
type: {type: Syntax.NumericLiteralType, value: 'number'}
}]
})
).to.be.eql(
'new Test(a: <code>number</code>)'
)
expect(
u.signature({
kind: 'function',
name: 'test',
params: [{
name: 'a',
type: {type: Syntax.NumericLiteralType, value: 'number'}
}],
returns: [{
type: {type: Syntax.NumericLiteralType, value: 'number'}