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

chore(guinness): update to 0.1.6 #1078

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ packages:
guinness:
description: guinness
source: hosted
version: "0.1.5"
version: "0.1.6"
html5lib:
description: html5lib
source: hosted
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ dev_dependencies:
benchmark_harness: '>=1.0.0'
unittest: '>=0.10.1 <0.12.0'
mock: '>=0.10.0 <0.12.0'
guinness: '>=0.1.3 <0.2.0'
guinness: '>=0.1.6 <0.2.0'
4 changes: 2 additions & 2 deletions test/angular_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ main() {
expect(() {
dynamic v = 6;
String s = v;
}).toThrow();
}).toThrowWith();
});
});

Expand Down Expand Up @@ -40,7 +40,7 @@ main() {
it('should fail with not enough arguments', () {
expect(() {
relaxFnApply((required, alsoRequired) => "happy", [1]);
}).toThrow('Unknown function type, expecting 0 to 5 args.');
}).toThrowWith(message: 'Unknown function type, expecting 0 to 5 args.');
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/change_detection/watch_group_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void main() {
watchLast.remove();
expect(watchGrp.fieldCost).toEqual(0);

expect(() => watch.remove()).toThrow('Already deleted!');
expect(() => watch.remove()).toThrowWith(message: 'Already deleted!');
});

it('should eval pure FunctionApply', () {
Expand Down
8 changes: 4 additions & 4 deletions test/core/core_directive_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void main() {
var injector = applicationFactory().addModule(module).createInjector();
expect(() {
injector.get(DirectiveMap);
}).toThrow('Mapping for attribute foo is already defined (while '
'processing annottation for field foo of Bad1Component)');
}).toThrowWith(message: 'Mapping for attribute foo is already defined (while '
'processing annottation for field foo of Bad1Component)');
});

it('should throw when annotated both getter and setter', () {
Expand All @@ -63,8 +63,8 @@ void main() {
var injector = applicationFactory().addModule(module).createInjector();
expect(() {
injector.get(DirectiveMap);
}).toThrow('Attribute annotation for foo is defined more than once '
'in Bad2Component');
}).toThrowWith(message: 'Attribute annotation for foo is defined more than once '
'in Bad2Component');
});
});

Expand Down
7 changes: 4 additions & 3 deletions test/core/parser/lexer_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ main() {
it('should throws exception for invalid exponent', () {
expect(() {
lex("0.5E-");
}).toThrow('Lexer Error: Invalid exponent at column 4 in expression [0.5E-]');
}).toThrowWith(message: 'Lexer Error: Invalid exponent at column 4 in expression [0.5E-]');

expect(() {
lex("0.5E-A");
}).toThrow('Lexer Error: Invalid exponent at column 4 in expression [0.5E-A]');
}).toThrowWith(message: 'Lexer Error: Invalid exponent at column 4 in expression [0.5E-A]');
});

it('should tokenize number starting with a dot', () {
Expand All @@ -240,7 +240,8 @@ main() {
it('should throw error on invalid unicode', () {
expect(() {
lex("'\\u1''bla'");
}).toThrow("Lexer Error: Invalid unicode escape [\\u1''b] at column 2 in expression ['\\u1''bla']");
}).toThrowWith(message: "Lexer Error: Invalid unicode escape [\\u1''b] at column 2 in "
"expression ['\\u1''bla']");
});
});
}
Loading