UNPKG

433 BJavaScriptView Raw
1/* @flow */
2
3import 'babel-polyfill'
4import { State } from '../src/main'
5
6describe('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})