Cater for nested aliassed types (#2560)
* Cater for nested aliassed types * linting
This commit is contained in:
@@ -26,6 +26,14 @@ describe('sanitize', (): void => {
|
||||
'Text Text (Text,[Text;32],Text)"Text<Text>'
|
||||
);
|
||||
});
|
||||
|
||||
it('handles emdedded Vec/Tuples', (): void => {
|
||||
const ann = alias(['Announcement'], 'ProxyAnnouncement');
|
||||
|
||||
expect(ann('(Vec<Announcement>,BalanceOf)')).toEqual(
|
||||
'(Vec<ProxyAnnouncement>,BalanceOf)'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('removeColons', (): void => {
|
||||
|
||||
@@ -22,8 +22,6 @@ export default {
|
||||
real: 'AccountId',
|
||||
callHash: 'Hash',
|
||||
height: 'BlockNumber'
|
||||
},
|
||||
// FIXME We don't want this here
|
||||
Announcement: 'ProxyAnnouncement'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
Reference in New Issue
Block a user