1 | /* @flow */
|
2 |
|
3 | import 'babel-polyfill'
|
4 | import { State } from '../src/main'
|
5 |
|
6 | describe('State', () => {
|
7 | let state: State
|
8 |
|
9 | beforeEach(() => {
|
10 | state = new State('foo.tex')
|
11 | })
|
12 |
|
13 | it('verifies that getRuleId returns expected id', () => {
|
14 | const result = state.getRuleId('quux', 'build', 'execute', 'bar', 'foo.tex')
|
15 | const expectedResult = 'quux(build;execute;bar;foo.tex)'
|
16 | expect(result).toEqual(expectedResult)
|
17 | })
|
18 | })
|