Skip to content

Commit

Permalink
refactor(runs): use camelcase properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mijailr committed Oct 3, 2020
1 parent e7c8d98 commit 8f38f0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/types/Run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export type RunActionRequest = {
export type RunRequest = {
data: {
attributes: {
'is-destroy'?: boolean
iDestroy?: boolean
message?: string
'target-addrs'?: string[]
targetAddrs?: string[]
}
relationships: {
workspace: {
Expand All @@ -24,7 +24,7 @@ export type RunRequest = {
type: 'workspaces'
}
}
'configuration-version': {
configurationVersion: {
data: {
id: string
type: 'configuration-versions'
Expand Down
6 changes: 3 additions & 3 deletions test/mocks/RunMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export const RunMock = {
export const RunRequestMock: RunRequest = {
data: {
attributes: {
'is-destroy': false,
iDestroy: false,
message: 'Custom message',
'target-addrs': ['example.resource_address'],
targetAddrs: ['example.resource_address'],
},
relationships: {
workspace: {
Expand All @@ -67,7 +67,7 @@ export const RunRequestMock: RunRequest = {
id: 'ws-LLGHCr4SWy28wyGN',
},
},
'configuration-version': {
configurationVersion: {
data: {
type: 'configuration-versions',
id: 'cv-n4XQPBa2QnecZJ4G',
Expand Down

0 comments on commit 8f38f0d

Please sign in to comment.