Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #202 from comigor/test-fix
Browse files Browse the repository at this point in the history
test fix
  • Loading branch information
vasilich6107 authored Aug 18, 2020
2 parents 2315966 + 6fb7547 commit d8c247f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 6.8.2-beta.1
- test fix

## 6.8.1-beta.1
- fix for multiple schema_mapping

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: artemis
version: 6.8.1-beta.1
version: 6.8.2-beta.1

description: Build dart types from GraphQL schemas and queries (using Introspection Query).
homepage: https://github.com/comigor/artemis
Expand Down
32 changes: 16 additions & 16 deletions test/query_generator/ast_schema/multiple_schema_mappint_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ final libraryDefinitionB =

const generatedFileA = r'''// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:meta/meta.dart';
import 'package:artemis/artemis.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
Expand Down Expand Up @@ -343,11 +342,11 @@ class BrowseArticles$Query with EquatableMixin {
}
enum ArticleType {
@JsonValue("NEWS")
@JsonValue('NEWS')
news,
@JsonValue("TUTORIAL")
@JsonValue('TUTORIAL')
tutorial,
@JsonValue("ARTEMIS_UNKNOWN")
@JsonValue('ARTEMIS_UNKNOWN')
artemisUnknown,
}
Expand Down Expand Up @@ -404,7 +403,6 @@ class BrowseArticlesQuery

const generatedFileB = r'''// GENERATED CODE - DO NOT MODIFY BY HAND
import 'package:meta/meta.dart';
import 'package:artemis/artemis.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
Expand Down Expand Up @@ -467,45 +465,47 @@ class NotificationOptionInput with EquatableMixin {
}
enum Privacy {
@JsonValue("PRIVATE")
@JsonValue('PRIVATE')
private,
@JsonValue("PUBLIC")
@JsonValue('PUBLIC')
public,
@JsonValue("ARTEMIS_UNKNOWN")
@JsonValue('ARTEMIS_UNKNOWN')
artemisUnknown,
}
enum Status {
@JsonValue("ARCHIVED")
@JsonValue('ARCHIVED')
archived,
@JsonValue("NORMAL")
@JsonValue('NORMAL')
normal,
@JsonValue("ARTEMIS_UNKNOWN")
@JsonValue('ARTEMIS_UNKNOWN')
artemisUnknown,
}
enum NotificationType {
@JsonValue("ACTIVITY_MESSAGE")
@JsonValue('ACTIVITY_MESSAGE')
activityMessage,
@JsonValue("ACTIVITY_REPLY")
@JsonValue('ACTIVITY_REPLY')
activityReply,
@JsonValue("FOLLOWING")
@JsonValue('FOLLOWING')
following,
@JsonValue("ACTIVITY_MENTION")
@JsonValue('ACTIVITY_MENTION')
activityMention,
@JsonValue("ARTEMIS_UNKNOWN")
@JsonValue('ARTEMIS_UNKNOWN')
artemisUnknown,
}
@JsonSerializable(explicitToJson: true)
class BrowseRepositoriesArguments extends JsonSerializable with EquatableMixin {
BrowseRepositoriesArguments({this.notificationTypes});
@override
factory BrowseRepositoriesArguments.fromJson(Map<String, dynamic> json) =>
_$BrowseRepositoriesArgumentsFromJson(json);
final List<NotificationOptionInput> notificationTypes;
@override
List<Object> get props => [notificationTypes];
@override
Map<String, dynamic> toJson() => _$BrowseRepositoriesArgumentsToJson(this);
}
Expand Down

0 comments on commit d8c247f

Please sign in to comment.