Permalink
Browse files

trying to fix failing test in travis, which is not failing locally

  • Loading branch information...
1 parent c25c16d commit 650d7a6251d0fe7cdd48c00a597cb7981177dd49 @constantology committed Nov 28, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 test/d8.test.js
  2. +2 −2 test/locale/GR.test.js
  3. +2 −2 test/locale/en-US.test.js
View
@@ -340,7 +340,7 @@ suite( 'd8 (en-GB/default)', function() {
expect( ( new Date( 2012, 0, 31 ) ).lexicalize( new Date( 2012, 2, 1 ), 'exact' ) ).to.equal( '1 month ago' );
expect( ( new Date( 2012, 2, 1 ) ).lexicalize( new Date( 2012, 0, 31 ), 'exact' ) ).to.equal( '1 month from now' );
expect( ( new Date( 2012, 0, 1 ) ).lexicalize( ( new Date( 2012, 2, 31, 1, 0, 1 ) ), 'exact' ) ).to.equal( '3 months ago' );
- expect( ( new Date( 2012, 3, 1 ) ).adjust( Date.HOUR, -23 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 months from now' );
+ expect( ( new Date( 2012, 2, 31, 1, 0, 1 ) ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 months from now' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, -1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 week ago' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, 1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 week from now' );
@@ -336,8 +336,8 @@ suite( 'd8 (greek-"ish")', function() {
expect( ( new Date( 2012, 0, 31 ) ).lexicalize( new Date( 2012, 2, 1 ), 'exact' ) ).to.equal( '1 μήνα πριν' );
expect( ( new Date( 2012, 2, 1 ) ).lexicalize( new Date( 2012, 0, 31 ), 'exact' ) ).to.equal( '1 μήνα από τώρα' );
- expect( ( new Date( 2012, 0, 1 ) ).lexicalize( ( new Date( 2012, 3, 1 ) ).adjust( Date.HOUR, -23 ), 'exact' ) ).to.equal( '3 μήνες πριν' );
- expect( ( new Date( 2012, 3, 1 ) ).adjust( Date.HOUR, -23 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 μήνες από τώρα' );
+ expect( ( new Date( 2012, 0, 1 ) ).lexicalize( ( new Date( 2012, 2, 31, 1, 0, 1 ) ), 'exact' ) ).to.equal( '3 μήνες πριν' );
+ expect( ( new Date( 2012, 2, 31, 1, 0, 1 ) ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 μήνες από τώρα' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, -1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 εβδομάδα πριν' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, 1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 εβδομάδα από τώρα' );
@@ -336,8 +336,8 @@ suite( 'd8 (en-US)', function() {
expect( ( new Date( 2012, 0, 31 ) ).lexicalize( new Date( 2012, 2, 1 ), 'exact' ) ).to.equal( '1 month ago' );
expect( ( new Date( 2012, 2, 1 ) ).lexicalize( new Date( 2012, 0, 31 ), 'exact' ) ).to.equal( '1 month from now' );
- expect( ( new Date( 2012, 0, 1 ) ).lexicalize( ( new Date( 2012, 3, 1 ) ).adjust( Date.HOUR, -23 ), 'exact' ) ).to.equal( '3 months ago' );
- expect( ( new Date( 2012, 3, 1 ) ).adjust( Date.HOUR, -23 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 months from now' );
+ expect( ( new Date( 2012, 0, 1 ) ).lexicalize( ( new Date( 2012, 2, 31, 1, 0, 1 ) ), 'exact' ) ).to.equal( '3 months ago' );
+ expect( ( new Date( 2012, 2, 31, 1, 0, 1 ) ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '3 months from now' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, -1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 week ago' );
expect( ( new Date( 2012, 0, 1 ) ).adjust( Date.WEEK, 1 ).lexicalize( new Date( 2012, 0, 1 ), 'exact' ) ).to.equal( '1 week from now' );

0 comments on commit 650d7a6

Please sign in to comment.