UNPKG

@tonkite/jest-tolk

Version:

<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tonkite/tonkite/main/assets/logo-dark.svg"> <img alt="tonkite logo" src="https://raw.githubusercontent.com/tonkite/tonkite/main/a

31 lines (30 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const annotations_1 = require("./annotations"); describe('extractAnnotationsFromDocBlock()', () => { it('extracts @scope', () => { expect((0, annotations_1.extractAnnotationsFromDocBlock)('// @scope myCustomScope')).toEqual({ scope: 'myCustomScope', }); }); it('extracts @runs', () => { expect((0, annotations_1.extractAnnotationsFromDocBlock)('// @runs 1200')).toEqual({ runs: 1200, }); }); it('extracts @gasLimit', () => { expect((0, annotations_1.extractAnnotationsFromDocBlock)('// @gasLimit 50000')).toEqual({ gasLimit: 50000, }); }); it('extracts @skip', () => { expect((0, annotations_1.extractAnnotationsFromDocBlock)('// @skip')).toEqual({ skip: true, }); }); it('extracts @todo', () => { expect((0, annotations_1.extractAnnotationsFromDocBlock)('// @todo')).toEqual({ todo: true, }); }); });