From 20f80ff775f2bfe9ac25df9bb580801968ef88e0 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 29 May 2013 08:29:30 +1000 Subject: [PATCH] more linting --- test/date_format-test.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/test/date_format-test.js b/test/date_format-test.js index d7a6b82..5f7f2ff 100644 --- a/test/date_format-test.js +++ b/test/date_format-test.js @@ -1,23 +1,24 @@ +"use strict"; var vows = require('vows') , assert = require('assert') , dateFormat = require('../lib/date_format'); vows.describe('date_format').addBatch({ - 'Date extensions': { - topic: function() { - return new Date(2010, 0, 11, 14, 31, 30, 5); - }, - 'should format a date as string using a pattern': function(date) { - assert.equal( - dateFormat.asString(dateFormat.DATETIME_FORMAT, date), - "11 01 2010 14:31:30.005" - ); - }, - 'should default to the ISO8601 format': function(date) { - assert.equal( - dateFormat.asString(date), - '2010-01-11 14:31:30.005' - ); - } + 'Date extensions': { + topic: function() { + return new Date(2010, 0, 11, 14, 31, 30, 5); + }, + 'should format a date as string using a pattern': function(date) { + assert.equal( + dateFormat.asString(dateFormat.DATETIME_FORMAT, date), + "11 01 2010 14:31:30.005" + ); + }, + 'should default to the ISO8601 format': function(date) { + assert.equal( + dateFormat.asString(date), + '2010-01-11 14:31:30.005' + ); } + } }).export(module);