Skip to content

Commit

Permalink
fix(cli): Fix tests generated by g cell (#11364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 24, 2024
1 parent 121cadf commit 30c1956
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export const success = {
exports[`Custom Id Field files > List cell > creates a cell list test with a custom id field 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './CustomIdFieldsCell'
import { standard } from './CustomIdFieldsCell.mock'
Expand Down Expand Up @@ -257,6 +258,7 @@ export const success = {
exports[`Custom Id Field files > Single cell > creates a cell test with a custom id field 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './CustomIdFieldCell'
import { standard } from './CustomIdFieldCell.mock'
Expand Down Expand Up @@ -373,6 +375,7 @@ export const success = {
exports[`Kebab case words > creates a cell test with a kebabCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'
Expand Down Expand Up @@ -489,6 +492,7 @@ export const success = {
exports[`Multiword files > creates a cell test with a multi word name 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'
Expand Down Expand Up @@ -605,6 +609,7 @@ export const success = {
exports[`Single word files > creates a cell test with a single word name 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './UserCell'
import { standard } from './UserCell.mock'
Expand Down Expand Up @@ -721,6 +726,7 @@ export const success = {
exports[`Snake case words > creates a cell test with a snakeCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'
Expand Down Expand Up @@ -804,6 +810,7 @@ export const Success = ({
exports[`TypeScript: generates list cells if list flag passed in 2`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './BazingaCell'
import { standard } from './BazingaCell.mock'
Expand Down Expand Up @@ -1008,6 +1015,7 @@ export const success = {
exports[`camelCase words > creates a cell test with a camelCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'
Expand Down Expand Up @@ -1076,6 +1084,7 @@ export const Success = ({ address }) => {
exports[`generates a cell with a string primary id key 2`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './AddressCell'
import { standard } from './AddressCell.mock'
Expand Down Expand Up @@ -1198,6 +1207,7 @@ export const Success = ({ addresses }) => {
exports[`generates list a cell with a string primary id keys 2`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './AddressesCell'
import { standard } from './AddressesCell.mock'
Expand Down Expand Up @@ -1330,6 +1340,7 @@ export const Success = ({ members }) => {
exports[`generates list cells if list flag passed in 2`] = `
"import { render } from '@redwoodjs/testing/web'
import { Loading, Empty, Failure, Success } from './MembersCell'
import { standard } from './MembersCell.mock'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './${pascalName}Cell'
import { standard } from './${pascalName}Cell.mock'

Expand Down

0 comments on commit 30c1956

Please sign in to comment.