| Index: third_party/pkg/angular/test/formatter/json_spec.dart
|
| diff --git a/third_party/pkg/angular/test/formatter/json_spec.dart b/third_party/pkg/angular/test/formatter/json_spec.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c3c62597c9535291d3d9263cb45110756dfbedd2
|
| --- /dev/null
|
| +++ b/third_party/pkg/angular/test/formatter/json_spec.dart
|
| @@ -0,0 +1,12 @@
|
| +library json_spec;
|
| +
|
| +import '../_specs.dart';
|
| +
|
| +void main() {
|
| + describe('json', () {
|
| + it('should convert primitives, array, map to json', inject((Scope scope, Parser parser, FormatterMap formatters) {
|
| + scope.context['foo'] = [{"string":'foo', "number": 123, "bool": false}];
|
| + expect(parser('foo | json').eval(scope.context, formatters)).toEqual('[{"string":"foo","number":123,"bool":false}]');
|
| + }));
|
| + });
|
| +}
|
|
|