Skip to content

Commit

Permalink
Remove useless failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Mar 7, 2024
1 parent c319f61 commit 411e05e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions back/tests/Kyoo.Tests/Database/RepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ public async Task DeleteByValueTest()
Assert.Equal(0, await _repository.GetCount());
}

[Fact]
public virtual async Task CreateIfNotExistTest()
{
T expected = TestSample.Get<T>();
KAssert.DeepEqual(expected, await _repository.CreateIfNotExists(TestSample.Get<T>()));
await _repository.Delete(TestSample.Get<T>());
KAssert.DeepEqual(expected, await _repository.CreateIfNotExists(TestSample.Get<T>()));
}

// [Fact]
// public async Task EditNonExistingTest()
// {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ await Repositories.LibraryManager.Seasons.Create(TestSample.Get<Season>())
}

[Fact]
public override async Task CreateIfNotExistTest()
public async Task CreateIfNotExistTest()
{
Episode expected = TestSample.Get<Episode>();
KAssert.DeepEqual(
Expand Down
2 changes: 1 addition & 1 deletion front/packages/models/src/query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export type QueryPage<Props = {}, Items = unknown> = ComponentType<
| { Layout: QueryPage<{ page: ReactElement }>; props: object };
requiredPermissions?: string[];
randomItems?: Items[];
isPublic?: boolean
isPublic?: boolean;
};

export const toQueryKey = (query: {
Expand Down

0 comments on commit 411e05e

Please sign in to comment.