Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
collinjackson committed Aug 25, 2019
1 parent 5eb3156 commit ae4db9a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,16 @@ void main() {
ValueSource.valueStatic,
);
});

test('doubleInstance', () async {
final List<Future<RemoteConfig>> futures = <Future<RemoteConfig>>[
RemoteConfig.instance,
RemoteConfig.instance,
];
Future.wait(futures).then((List<RemoteConfig> remoteConfigs) {
// Check that both returned Remote Config instances are the same.
expect(remoteConfigs[0], remoteConfigs[1]);
});
});
});
}

0 comments on commit ae4db9a

Please sign in to comment.