chore: generate template (#15)

This commit is contained in:
github-actions[bot]
2022-04-11 11:57:50 -05:00
committed by GitHub
parent 616b737d95
commit 61db82ebbb
8 changed files with 31 additions and 31 deletions

View File

@@ -15,15 +15,15 @@ void main() {
group('{{#pascalCase}}{{project_name}}{{/pascalCase}}IOS', () {
const kPlatformName = 'iOS';
late {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS myPlugin;
late {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS {{#camelCase}}{{project_name}}{{/camelCase}};
late List<MethodCall> log;
setUp(() async {
myPlugin = {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS();
{{#camelCase}}{{project_name}}{{/camelCase}} = {{#pascalCase}}{{project_name}}{{/pascalCase}}IOS();
log = <MethodCall>[];
TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger
.setMockMethodCallHandler(myPlugin.methodChannel, (methodCall) async {
.setMockMethodCallHandler({{#camelCase}}{{project_name}}{{/camelCase}}.methodChannel, (methodCall) async {
log.add(methodCall);
switch (methodCall.method) {
case 'getPlatformName':
@@ -40,7 +40,7 @@ void main() {
});
test('getPlatformName returns correct name', () async {
final name = await myPlugin.getPlatformName();
final name = await {{#camelCase}}{{project_name}}{{/camelCase}}.getPlatformName();
expect(
log,
<Matcher>[isMethodCall('getPlatformName', arguments: null)],