Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: third_party/pkg/angular/test/formatter/arrayify_spec.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library map_spec;
2
3 import '../_specs.dart';
4 import 'package:angular/formatter/module.dart';
5
6 void main() {
7 describe('arrayify', () {
8 it('should convert a map to list of key value pairs', (Parser parse, Formatt erMap formatters) {
9 List result = parse('{"key1": "value1", "key2": "value2"} | arrayify').eva l(null, formatters);
10 expect(result.map((kv) => kv.key)).toEqual(["key1", "key2"]);
11 expect(result.map((kv) => kv.value)).toEqual(["value1", "value2"]);
12 });
13
14 it('should treat null as noop', (Parser parse, FormatterMap formatters) {
15 expect(parse('null | arrayify').eval(null, formatters)).toEqual(null);
16 });
17 });
18 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/test/filter/uppercase_spec.dart ('k') | third_party/pkg/angular/test/formatter/currency_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698