aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocksSpec.js
diff options
context:
space:
mode:
authorDi Peng2011-07-14 12:02:01 -0700
committerIgor Minar2011-07-20 17:06:56 -0700
commit3af1e7ca2ee8c2acd69e5bcbb3ffc1bf51239285 (patch)
treee354ff465d7f29e419591dd12fb7c9f48bd8bb81 /test/angular-mocksSpec.js
parent0fbaa2f12ab96328fe2e7b4b9f3ec0c8d7f30e37 (diff)
downloadangular.js-3af1e7ca2ee8c2acd69e5bcbb3ffc1bf51239285.tar.bz2
feat(filter.date): add support for default datetime formats in en
- add support for full,long, medium, short datetime formats in en Breaks MMMMM. now we don't support MMMMM anymore as old implementation differs from Unicode Locale Data format we are following. - removed support for fullDateTime and fullTime as it means too much trouble with full timeZone names - added docs for the new features
Diffstat (limited to 'test/angular-mocksSpec.js')
-rw-r--r--test/angular-mocksSpec.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js
index b85503e6..a30c3497 100644
--- a/test/angular-mocksSpec.js
+++ b/test/angular-mocksSpec.js
@@ -130,13 +130,9 @@ describe('mocks', function(){
it('should throw error when no third param but toString called', function() {
- var t = new TzDate(0, 0);
- try {
- t.toString();
- } catch(err) {
- expect(err.name).toBe('MethodNotImplemented');
- }
- })
+ expect(function() { new TzDate(0,0).toString() }).
+ toThrow('Method \'toString\' is not implemented in the TzDate mock');
+ });
});
describe('$log mock', function() {