From 168e5db2fd449c42508122ffa28f04615203c9f8 Mon Sep 17 00:00:00 2001 From: Kalervo Kujala Date: Sat, 26 Nov 2011 20:35:46 +0200 Subject: [PATCH] Add unit test files to lint. And fix the lint warnings from obj_spec.js. --- Makefile | 4 ++-- test/unit/obj_spec.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c06ea5ddc..7337444d0 100644 --- a/Makefile +++ b/Makefile @@ -138,8 +138,8 @@ browser-test: # To install gjslint, see: # # -SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \ - extensions/firefox/components extensions/chrome +SRC_DIRS := . src utils web test test/unit examples/helloworld \ + extensions/firefox extensions/firefox/components extensions/chrome GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js)) lint: gjslint --nojsdoc $(GJSLINT_FILES) diff --git a/test/unit/obj_spec.js b/test/unit/obj_spec.js index 4f1a0b57a..f3a4185dd 100644 --- a/test/unit/obj_spec.js +++ b/test/unit/obj_spec.js @@ -3,11 +3,11 @@ 'use strict'; -describe("obj", function() { +describe('obj', function() { - describe("Name", function() { - it("should retain the given name", function() { - var givenName = "Font"; + describe('Name', function() { + it('should retain the given name', function() { + var givenName = 'Font'; var name = new Name(givenName); expect(name.name).toEqual(givenName); });