Browse Source

nextcloud: Fix notes tests

pull/29/head
jld3103 2 years ago
parent
commit
67b404e04f
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 18
      packages/nextcloud/test/notes_test.dart

18
packages/nextcloud/test/notes_test.dart

@ -74,7 +74,13 @@ Future main() async {
.id!; .id!;
await validateResponse<NotesNote, void>( await validateResponse<NotesNote, void>(
client.notes, client.notes,
client.notes.updateNoteWithHttpInfo(id, NotesNote(title: 'b')), client.notes.updateNoteWithHttpInfo(
id,
NotesNote(
id: id,
title: 'b',
),
),
); );
final response = (await validateResponse<NotesNote, void>( final response = (await validateResponse<NotesNote, void>(
@ -94,7 +100,10 @@ Future main() async {
client.notes, client.notes,
client.notes.updateNoteWithHttpInfo( client.notes.updateNoteWithHttpInfo(
response.id!, response.id!,
NotesNote(title: 'b'), NotesNote(
id: response.id!,
title: 'b',
),
ifMatch: '"${response.etag}"', ifMatch: '"${response.etag}"',
), ),
); );
@ -104,7 +113,10 @@ Future main() async {
client.notes, client.notes,
client.notes.updateNoteWithHttpInfo( client.notes.updateNoteWithHttpInfo(
response.id!, response.id!,
NotesNote(title: 'c'), NotesNote(
id: response.id!,
title: 'c',
),
ifMatch: '"${response.etag}"', ifMatch: '"${response.etag}"',
), ),
), ),

Loading…
Cancel
Save