Skip to content

Commit bb48cb9

Browse files
committed
chore(guinness): update guinness to 0.1.12
Closes dart-archive#1078
1 parent 1fb668b commit bb48cb9

17 files changed

+155
-136
lines changed

pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ packages:
3636
guinness:
3737
description: guinness
3838
source: hosted
39-
version: "0.1.5"
39+
version: "0.1.12"
4040
html5lib:
4141
description: html5lib
4242
source: hosted

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ dev_dependencies:
2929
benchmark_harness: '>=1.0.0'
3030
unittest: '>=0.10.1 <0.12.0'
3131
mock: '>=0.10.0 <0.12.0'
32-
guinness: '>=0.1.3 <0.2.0'
32+
guinness: '>=0.1.12 <0.2.0'

test/angular_spec.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ main() {
1212
expect(() {
1313
dynamic v = 6;
1414
String s = v;
15-
}).toThrow();
15+
}).toThrowWith();
1616
});
1717
});
1818

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

test/change_detection/watch_group_spec.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void main() {
293293
watchLast.remove();
294294
expect(watchGrp.fieldCost).toEqual(0);
295295

296-
expect(() => watch.remove()).toThrow('Already deleted!');
296+
expect(() => watch.remove()).toThrowWith(message: 'Already deleted!');
297297
});
298298

299299
it('should eval pure FunctionApply', () {

test/core/core_directive_spec.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ void main() {
5252
var injector = applicationFactory().addModule(module).createInjector();
5353
expect(() {
5454
injector.get(DirectiveMap);
55-
}).toThrow('Mapping for attribute foo is already defined (while '
56-
'processing annottation for field foo of Bad1Component)');
55+
}).toThrowWith(message: 'Mapping for attribute foo is already defined (while '
56+
'processing annottation for field foo of Bad1Component)');
5757
});
5858

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

test/core/parser/lexer_spec.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ main() {
225225
it('should throws exception for invalid exponent', () {
226226
expect(() {
227227
lex("0.5E-");
228-
}).toThrow('Lexer Error: Invalid exponent at column 4 in expression [0.5E-]');
228+
}).toThrowWith(message: 'Lexer Error: Invalid exponent at column 4 in expression [0.5E-]');
229229

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

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

0 commit comments

Comments
 (0)