'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
var javascript = exports.javascript = 'var component = {\n\tname: "react-codemirror",\n\tauthor: "Jed Watson",\n\trepo: "https://github.com/JedWatson/react-codemirror"\n};';

var eslintTest = exports.eslintTest = 'var undefinedVals';

var libUrls = exports.libUrls = [];

var tests = exports.tests = {
  greeting: 'describe("Greeting", () => {\n  const names = [\'Ali\', \'Maggie\', \'Harvey\', \'Alison\', \'Aaron\'];\n    beforeEach(() => sinon.spy(console, \'log\'));\n    afterEach(() => console.log.restore());\n    names.forEach((name) => {\n      it("should print a greeting to", () => {\n        greeting(name);\n        console.log.calledWith("Hello, nice to meet you!").should.be.true;\n      });\n    });\n  });',
  foods: 'describe("Foods", () => {\n    it("should exist", () => {\n      food.should.be.an("array");\n    });\n  })',
  oldStyle: '(function (window, $, _) {\n        \'use strict\';\n\n        mocha.setup(\'bdd\');\n\n        const assert = window.assert = chai.assert;\n        const expect = window.expect = chai.expect;\n        const mock = window.mock = sinon.mock;\n        const should = window.should = chai.should();\n        const console = window.console;\n\n        chai.use(function (_chai, _) {\n            _chai.Assertion.addMethod(\'it\', function (msg) {\n                _.flag(this, \'message\', msg);\n            });\n        });\n\n        describe("About Variables", function () {\n\n            beforeEach(function() {\n                sinon.stub(console, \'log\');\n             });\n\n             afterEach(function() {\n               console.log.restore();\n             });\n\n            it("should create variables", function () {\n                greeting.should.equal(\'Hello World\');\n            });\n\n            it(\'should log Hello World\', function() {\n              expect(window.console.log.calledOnce).to.be.true;\n              (window.console.log.calledWith(\'Hello World\')).should.be.true;\n            });\n            it("should create variables with different types", function () {\n              let exists = [\n                { name: myName, type: \'string\' },\n                { name: myAge, type: \'number\' },\n                { name: isAdult, type: \'boolean\' }\n              ];\n              exists.forEach(exist => (typeof exist.name).should.equal(exist.type));\n              myAge >= 18 ? isAdult.should.be.true : isAdult.should.be.false\n            });\n            it("should re-assign variables", function () {\n                if(jobTitle === \'Junior Software Developer\' || !jobTitle){\n                  salary.should.equal(60000);\n                }\n                if(salary === 60000 || !salary){\n                  jobTitle.should.equal(\'Junior Software Developer\');\n                }\n                if( jobTitle === \'Junior Software Developer\' && salary === 60000){\n                  salary.should.equal(75000);\n                  jobTitle.should.equal(\'Team Lead\');\n                }\n            });\n\n        });\n\n        mocha.run();\n}(window, window.$, window._));'
};