Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
context('when file does not end with .sol', () => {
fancy
.do(async () => {
const path = __dirname + '/../../templates/contract/example.notsol';
await compileSol(path, ({ solcVersion: '0.4.12' } as any) as Option);
})
.catch('it is not a solidity file.')
.it('should throw not sol file error');
});
});