Add unit test files to lint.
And fix the lint warnings from obj_spec.js.
This commit is contained in:
parent
27ba65dc6f
commit
168e5db2fd
4
Makefile
4
Makefile
@ -138,8 +138,8 @@ browser-test:
|
|||||||
# To install gjslint, see:
|
# To install gjslint, see:
|
||||||
#
|
#
|
||||||
# <http://code.google.com/closure/utilities/docs/linter_howto.html>
|
# <http://code.google.com/closure/utilities/docs/linter_howto.html>
|
||||||
SRC_DIRS := . src utils web test examples/helloworld extensions/firefox \
|
SRC_DIRS := . src utils web test test/unit examples/helloworld \
|
||||||
extensions/firefox/components extensions/chrome
|
extensions/firefox extensions/firefox/components extensions/chrome
|
||||||
GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
|
GJSLINT_FILES = $(foreach DIR,$(SRC_DIRS),$(wildcard $(DIR)/*.js))
|
||||||
lint:
|
lint:
|
||||||
gjslint --nojsdoc $(GJSLINT_FILES)
|
gjslint --nojsdoc $(GJSLINT_FILES)
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe("obj", function() {
|
describe('obj', function() {
|
||||||
|
|
||||||
describe("Name", function() {
|
describe('Name', function() {
|
||||||
it("should retain the given name", function() {
|
it('should retain the given name', function() {
|
||||||
var givenName = "Font";
|
var givenName = 'Font';
|
||||||
var name = new Name(givenName);
|
var name = new Name(givenName);
|
||||||
expect(name.name).toEqual(givenName);
|
expect(name.name).toEqual(givenName);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user