Add linting support, and, well, lint.

This commit is contained in:
Shruti B Iyer
2017-06-12 16:55:14 +01:00
committed by Dave Page
parent 659eb1c1e8
commit 3f4f8b9e77
31 changed files with 429 additions and 405 deletions

View File

@@ -7,18 +7,18 @@
//
//////////////////////////////////////////////////////////////////////////
define(["sources/sqleditor_utils"],
define(['sources/sqleditor_utils'],
function (SqlEditorUtils) {
describe("SqlEditorUtils", function () {
describe('SqlEditorUtils', function () {
describe("Generate a random string of size 10", function () {
it("returns string of length 10", function () {
describe('Generate a random string of size 10', function () {
it('returns string of length 10', function () {
expect(SqlEditorUtils.epicRandomString(10).length).toEqual(10);
});
});
describe("Generate a unique hash for given string", function () {
it("returns unique hash", function () {
describe('Generate a unique hash for given string', function () {
it('returns unique hash', function () {
expect(SqlEditorUtils.getHash('select * from test')).toEqual(403379630);
});
});