/* @flow */

import 'babel-polyfill'
import { BuildState } from '../src/main'

describe('BuildState', () => {
  let buildState: BuildState

  beforeEach(() => {
    buildState = new BuildState('foo.tex')
  })

  it('verifies that getRuleId returns expected id', () => {
    buildState.phase = 'initialize'
    console.log(buildState.getRuleId('quux', 'bar', 'foo.tex'))
    expect(buildState.getRuleId('quux', 'bar', 'foo.tex')).toEqual('quux(initialize;bar;foo.tex)')
  })
})

@@ -303,72 +303,8 @@
 ze'%0A
-    console.log(buildState.getRuleId('quux', 'bar', 'foo.tex'))%0A
     
@@ -364,13 +364,10 @@
 ).to
-Equal
+Be
 ('qu

Fix spec