From 16c7c296eb67ee26e098d0e9019bac1c11f22357 Mon Sep 17 00:00:00 2001 From: steebchen Date: Mon, 20 Nov 2023 21:41:55 +0700 Subject: [PATCH] test(enums): add some casing tests --- test/features/enums/enums_test.go | 12 ++++++++++-- test/features/enums/schema.prisma | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/features/enums/enums_test.go b/test/features/enums/enums_test.go index 62c4cf4a..c1b2829a 100644 --- a/test/features/enums/enums_test.go +++ b/test/features/enums/enums_test.go @@ -18,6 +18,14 @@ type Func func(t *testing.T, client *PrismaClient, ctx cx) func TestEnums(t *testing.T) { t.Parallel() + // casing test no-ops + _ = StuffLast7D + _ = StuffLast30D + _ = StuffSlack + _ = StuffLast7DAnd + _ = StuffLast30Dand + _ = StuffID + tests := []struct { name string before []string @@ -28,7 +36,7 @@ func TestEnums(t *testing.T) { admin := RoleAdmin mod := RoleModerator - stuffCASING := StuffCasing + stuffCasing := StuffCasing stuffDifferent := StuffDifferent stuffHaHa := StuffHaHa expected := &UserModel{ @@ -36,7 +44,7 @@ func TestEnums(t *testing.T) { ID: "123", Role: admin, RoleOpt: &mod, - Stuff1: &stuffCASING, + Stuff1: &stuffCasing, Stuff2: &stuffDifferent, Stuff3: &stuffHaHa, }, diff --git a/test/features/enums/schema.prisma b/test/features/enums/schema.prisma index e36c66e5..0274b06d 100644 --- a/test/features/enums/schema.prisma +++ b/test/features/enums/schema.prisma @@ -29,4 +29,10 @@ enum Stuff { different CASING HaHa + last7d + last30D + last7dAnd + last30DAnd + Slack + id }