Skip to content

Commit

Permalink
fix(schema-engine): update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 25, 2024
1 parent f334a58 commit f413ba4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ fn multi_column_fulltext_index_with_asc_in_beginning_desc_in_end() {
}

#[test]
fn fultext_index_without_preview_flag() {
fn fultext_index() {
let depth = CompositeTypeDepth::Infinite;

let res = introspect_features(depth, Default::default(), |db| async move {
Expand All @@ -701,14 +701,16 @@ fn fultext_index_without_preview_flag() {
id String @id @default(auto()) @map("_id") @db.ObjectId
age Int
name String
@@fulltext([name], map: "name_\"text\"")
}
"#]];

expected.assert_eq(res.datamodel());
}

#[test]
fn fultext_composite_index_without_preview_flag() {
fn fultext_composite_index() {
let depth = CompositeTypeDepth::Infinite;

let res = introspect_features(depth, Default::default(), |db| async move {
Expand Down Expand Up @@ -739,6 +741,8 @@ fn fultext_composite_index_without_preview_flag() {
id String @id @default(auto()) @map("_id") @db.ObjectId
address CatAddress
name String
@@fulltext([address.street], map: "address.street_\"text\"")
}
"#]];

Expand Down

0 comments on commit f413ba4

Please sign in to comment.