Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(test): fixes for latest unittest lib
Browse files Browse the repository at this point in the history
Closes #811
  • Loading branch information
kevmoo authored and mhevery committed Mar 31, 2014
1 parent 3f3f26f commit c852720
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example/web/todo.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
library todo;

import 'dart:html';

import 'package:angular/angular.dart';
import 'package:angular/angular_dynamic.dart';
import 'package:angular/playback/playback_http.dart';

import 'dart:html';

class Item {
String text;
bool done;
Expand Down
3 changes: 2 additions & 1 deletion lib/mock/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import 'dart:async' as dart_async;
import 'dart:collection' show ListBase;
import 'dart:html';
import 'dart:js' as js;

import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:unittest/mock.dart';
import 'package:mock/mock.dart';

import 'http_backend.dart';

Expand Down
10 changes: 9 additions & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ packages:
description: logging
source: hosted
version: "0.9.1+1"
matcher:
description: matcher
source: hosted
version: "0.10.0"
meta:
description: meta
source: hosted
version: "0.8.8"
mock:
description: mock
source: hosted
version: "0.10.0"
path:
description: path
source: hosted
Expand Down Expand Up @@ -79,7 +87,7 @@ packages:
unittest:
description: unittest
source: hosted
version: "0.9.3"
version: "0.10.1+1"
utf:
description: utf
source: hosted
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ dependencies:
shadow_dom: '>=0.9.1 <1.0.0'
dev_dependencies:
benchmark_harness: '>=1.0.0'
unittest: '>=0.8.7 <0.10.0'
unittest: '>=0.10.1 <0.12.0'
mock: '>=0.10.0 <0.12.0'
6 changes: 3 additions & 3 deletions test/_specs.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
library ng_specs;

import 'dart:html' hide Animation;
import 'package:unittest/unittest.dart' as unit;

import 'package:angular/angular.dart';
import 'package:angular/mock/module.dart';
import 'package:angular/mock/test_injection.dart';
import 'package:collection/wrappers.dart' show DelegatingList;
import 'package:unittest/unittest.dart' as unit;

import 'jasmine_syntax.dart' as jasmine_syntax;

export 'dart:html' hide Animation;
export 'package:unittest/unittest.dart';
export 'package:unittest/mock.dart';
export 'package:mock/mock.dart';
export 'package:di/dynamic_injector.dart';
export 'package:angular/angular.dart';
export 'package:angular/animate/module.dart';
Expand Down

0 comments on commit c852720

Please sign in to comment.