'use babel'

SoftWrapIndicator = require('../lib/soft-wrap-indicator')

describe('SoftWrapIndicatorPackage', () => {
  let atomEnv, indicator

  beforeEach(async () => {
    atomEnv = global.buildAtomEnvironment()
    let workspace = atomEnv.workspace
    let workspaceElement = atomEnv.views.getView(workspace)

    await atomEnv.packages.activatePackage('status-bar')
    await atomEnv.packages.activatePackage('language-javascript')
    await atomEnv.packages.activatePackage('language-gfm')
    await atomEnv.packages.activatePackage('soft-wrap-indicator')

    expect(SoftWrapIndicator.deactivate).to.be.ok
    indicator = SoftWrapIndicator.component.element
  })

  afterEach(() => {
    atomEnv.destroy()
  })

  it('creates an indicator element', () => {
    expect(indicator).to.be.ok
  })
})

@@ -102,21 +102,27 @@
 ckage', 
-() =%3E
+function ()
  %7B%0A  let
@@ -165,158 +165,21 @@
 ync 
-() =%3E %7B%0A    atomEnv = global.buildAtomEnvironment()%0A    let workspace = atomEnv.workspace%0A    let workspaceElement = atomEnv.views.getView(workspace)%0A
+function () %7B
 %0A   
@@ -181,35 +181,32 @@
 %7B%0A    await atom
-Env
 .packages.activa
@@ -235,35 +235,32 @@
 )%0A    await atom
-Env
 .packages.activa
@@ -298,35 +298,32 @@
 )%0A    await atom
-Env
 .packages.activa
@@ -362,19 +362,16 @@
 ait atom
-Env
 .package
@@ -532,21 +532,27 @@
 terEach(
-() =%3E
+function ()
  %7B%0A    a
@@ -554,19 +554,16 @@
     atom
-Env
 .destroy
@@ -612,13 +612,19 @@
 t', 
-() =%3E
+function ()
  %7B%0A 

Switch to using function keyword instead of arrow functions