var expect = require('chai').expect;
var parse = require('../src/commands/parse');

describe('YAML-to-commands parser', () => {
  var filename = 'test/test.usher.yml';
  var result = parse(filename);
  var tests = [
    {
      key: 'basic',
      expected: 'docker build -t usher .'
    },
    {
      key: 'custom',
      expected: 'do thing'
    },
    {
      key: 'sequence',
      expected: [
        'docker build -t usher .',
        'do thing'
      ]
    },
    {
      key: 'bogus',
      expected: false
    },
    {
      key: 'null',
      expected: false
    }
  ];

  tests.forEach( test =>
    it(`should make command ${test.key} ==> ${test.expected}`, () =>
      expect(result[test.key]).to.deep.equal(test.expected)));
});

@@ -1,12 +1,27 @@
+%22use strict%22;%0A%0A
 var expect =
@@ -138,19 +138,19 @@
  =%3E %7B%0A  
-var
+let
  filenam
@@ -178,19 +178,19 @@
 yml';%0A  
-var
+let
  result 
@@ -210,19 +210,19 @@
 ame);%0A  
-var
+let
  tests =

Make some vars lets for strictness purposes.