diff --git a/README.md b/README.md index 87816ea..8c71bd2 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,13 @@ On [Packagist](https://packagist.org/packages/data-values/javascript): ## Release notes -### 0.9.0 (dev) +### 0.9.0 (2017-09-06) * Removed `valueFormatters.ValueFormatterStore`. +* Removed the `options` constructor parameter as well as the `getOptions` method from + `valueFormatters.ValueFormatter`. +* Removed `dataValues.DataValue.getSortKey` from the interface and all implementations. * Removed `dataValues.TimeValue.getYear`, `getMonth`, `getDay`, `getHour`, `getMinute`, and `getSecond`. -* Removed `dataValues.DataValue.getSortKey` from the interface and all implementations. * Removed `globeCoordinate.GlobeCoordinate.iso6709`. * Declared `globeCoordinate.GlobeCoordinate.getDecimal` private. diff --git a/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js b/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js index 35ac743..76ecca4 100644 --- a/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js +++ b/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js @@ -17,22 +17,22 @@ define( [ assert.expect( 9 ); var c; - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( '' ); }, 'Trying to instantiate with an empty value throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( 'some string' ); }, 'Trying to instantiate with an invalid value (some string) throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( '190° 30" 1.123\'' ); }, 'Trying to instantiate with an invalid value (190° 30" 1.123\') throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( { latitude: 20 } ); }, 'Trying to instantiate with an invalid value ({ latitude: 20 }) throws an error.' ); diff --git a/tests/src/valueParsers/ValueParserStore.tests.js b/tests/src/valueParsers/ValueParserStore.tests.js index be2673d..5c9b24a 100644 --- a/tests/src/valueParsers/ValueParserStore.tests.js +++ b/tests/src/valueParsers/ValueParserStore.tests.js @@ -65,7 +65,7 @@ define( [ QUnit.test( 'registerDataTypeParser(): Error handling', function( assert ) { var parserStore = new vp.ValueParserStore(); - assert['throws']( + assert.throws( function() { parserStore.registerDataTypeParser( 'invalid', stringType.getId() ); }, @@ -74,7 +74,7 @@ define( [ parserStore.registerDataTypeParser( StringParser, stringType.getId() ); - assert['throws']( + assert.throws( function() { parserStore.getParser( stringType ); }, @@ -85,7 +85,7 @@ define( [ QUnit.test( 'registerDataValueParser(): Error handling', function( assert ) { var parserStore = new vp.ValueParserStore(); - assert['throws']( + assert.throws( function() { parserStore.registerDataValueParser( 'invalid', StringValue.TYPE ); }, @@ -94,7 +94,7 @@ define( [ parserStore.registerDataValueParser( StringParser, StringValue.TYPE ); - assert['throws']( + assert.throws( function() { parserStore.getParser( StringValue ); }, diff --git a/tests/src/values/TimeValue.tests.js b/tests/src/values/TimeValue.tests.js index 9d68184..ae117b6 100644 --- a/tests/src/values/TimeValue.tests.js +++ b/tests/src/values/TimeValue.tests.js @@ -89,7 +89,7 @@ define( [ for ( i = 0; i < invalidTimestamps.length; i++ ) { invalidTimestamp = invalidTimestamps[i]; - assert['throws']( + assert.throws( function() { dv.TimeValue( invalidTimestamp ); },