| Index: utils/tests/pub/lock_file_test.dart
|
| diff --git a/utils/tests/pub/lock_file_test.dart b/utils/tests/pub/lock_file_test.dart
|
| index cab8771783156feb7acbbdd0fea9cca08e13ac8e..f10ba25dfeea55e63865afca0a6351a44f999d54 100644
|
| --- a/utils/tests/pub/lock_file_test.dart
|
| +++ b/utils/tests/pub/lock_file_test.dart
|
| @@ -11,13 +11,12 @@
|
| #import('../../pub/source_registry.dart');
|
| #import('../../pub/utils.dart');
|
| #import('../../pub/version.dart');
|
| -#import('../../pub/yaml/yaml.dart');
|
|
|
| class MockSource extends Source {
|
| final String name = 'mock';
|
| final bool shouldCache = false;
|
|
|
| - void validateDescription(String description, [bool fromLockFile=false]) {
|
| + void validateDescription(String description) {
|
| description.endsWith(' desc');
|
| }
|
|
|
| @@ -166,31 +165,6 @@ packages:
|
| ''', sources);
|
| });
|
| });
|
| -
|
| - group('serialize()', () {
|
| - test('dumps the lockfile to YAML', () {
|
| - var lockfile = new LockFile.empty();
|
| - lockfile.packages['foo'] =
|
| - new PackageId(mockSource, new Version.parse('1.2.3'), 'foo desc');
|
| - lockfile.packages['bar'] =
|
| - new PackageId(mockSource, new Version.parse('3.2.1'), 'bar desc');
|
| -
|
| - expect(loadYaml(lockfile.serialize()), equals({
|
| - 'packages': {
|
| - 'foo': {
|
| - 'version': '1.2.3',
|
| - 'source': 'mock',
|
| - 'description': 'foo desc'
|
| - },
|
| - 'bar': {
|
| - 'version': '3.2.1',
|
| - 'source': 'mock',
|
| - 'description': 'bar desc'
|
| - }
|
| - }
|
| - }));
|
| - });
|
| - });
|
| });
|
| }
|
|
|
|
|