       '''
       productType,name,variantId
       '''
-    file = '/tmp/output.csv'
+    outputLocation = '/tmp/output.csv'
     expectedCSV =
       """
       productType,name,variantId

      ,,2,Enum1,Enum1;Enum2

      """
    @export.exportDefault(template, file)
    .then (result) ->
      expect(result).toBe 'Export done.'
      fs.readFileAsync file, {encoding: 'utf8'}
    .then (content) ->
      expect(content).toBe expectedCSV
      done()

    '''
      productType,name,variantId,attr-lenum-n.en,attr-set-lenum-n.en,žškřďťň
      '''
    outputLocation = '/tmp/output.csv'
    expectedCSV =
    """
      productType,name,variantId,attr-lenum-n.en,attr-set-lenum-n.en,žškřďťň
