Browse Source

Merge pull request #440 from provokateurin/fix/dynamite-runtime-enable-tests

dynamite_runtime: Enable skipped tests
pull/448/head
Kate 1 year ago committed by GitHub
parent
commit
9f0d6052c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 56
      packages/dynamite/dynamite_runtime/test/content_string_test.dart

56
packages/dynamite/dynamite_runtime/test/content_string_test.dart

@ -57,9 +57,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding bool',
() {
group('ContentString with unknown specifiedType holding bool', () {
final data = ContentString((final b) => b..content = true);
final serialized = json.decode(
json.encode({
@ -76,9 +74,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group('ContentString with known specifiedType holding double', () {
final data = ContentString<double>((final b) => b..content = 42.5);
@ -94,9 +90,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding double',
() {
group('ContentString with unknown specifiedType holding double', () {
final data = ContentString((final b) => b..content = 42.5);
final serialized = json.decode(
json.encode({
@ -113,9 +107,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group('ContentString with known specifiedType holding list', () {
final data = ContentString<BuiltList<int>>((final b) => b..content = BuiltList([1, 2, 3]));
@ -133,9 +125,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding list',
() {
group('ContentString with unknown specifiedType holding list', () {
final data = ContentString((final b) => b..content = BuiltList([1, 2, 3]));
final serialized = json.decode(
json.encode({
@ -159,9 +149,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group('ContentString with known specifiedType holding map', () {
final data =
@ -182,9 +170,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding map',
() {
group('ContentString with unknown specifiedType holding map', () {
final data = ContentString((final b) => b..content = BuiltMap({'one': 1, 'two': 2, 'three': 3}));
final serialized = json.decode(
json.encode({
@ -206,9 +192,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group(
'ContentString with known specifiedType holding int',
@ -227,9 +211,7 @@ void main() {
},
);
group(
'ContentString with unknown specifiedType holding int',
() {
group('ContentString with unknown specifiedType holding int', () {
final data = ContentString((final b) => b..content = 42);
final serialized = json.decode(
json.encode({
@ -246,9 +228,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group('ContentString with known specifiedType holding String', () {
final data = ContentString<String>((final b) => b..content = 'test');
@ -264,9 +244,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding String',
() {
group('ContentString with unknown specifiedType holding String', () {
final data = ContentString((final b) => b..content = 'test');
final serialized = json.decode(
json.encode({
@ -283,9 +261,7 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: true,
);
});
group('ContentString with known specifiedType holding ContentString', () {
final data = ContentString<ContentString<String>>(
@ -308,9 +284,7 @@ void main() {
});
});
group(
'ContentString with unknown specifiedType holding ContentString',
() {
group('ContentString with unknown specifiedType holding ContentString', () {
final data = ContentString<ContentString<String>>(
(final b) => b
..content = ContentString<String>(
@ -335,7 +309,5 @@ void main() {
test('can be deserialized', () {
expect(serializers.deserialize(serialized, specifiedType: specifiedType), data);
});
},
skip: false,
);
});
}

Loading…
Cancel
Save