File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useSettings } from "@hooks/use-settings";
55import { JobState } from "@services/types" ;
66import { jobMinimalFactory } from "@test/factories/job" ;
77import { vi } from "vitest" ;
8+ import { createFeatures } from "@test/utils/features" ;
89
910import JobList from "./JobList" ;
1011
@@ -38,9 +39,9 @@ export const Running: Story = {
3839 {
3940 hook : useFeatures ,
4041 mockValue : {
41- features : {
42+ features : createFeatures ( {
4243 jobListHideArgsByDefault : false ,
43- } ,
44+ } ) ,
4445 } ,
4546 } ,
4647 {
@@ -64,9 +65,9 @@ export const ArgsHiddenByDefault: Story = {
6465 {
6566 hook : useFeatures ,
6667 mockValue : {
67- features : {
68+ features : createFeatures ( {
6869 jobListHideArgsByDefault : true ,
69- } ,
70+ } ) ,
7071 } ,
7172 } ,
7273 {
@@ -90,9 +91,9 @@ export const ArgsVisibleUserOverride: Story = {
9091 {
9192 hook : useFeatures ,
9293 mockValue : {
93- features : {
94+ features : createFeatures ( {
9495 jobListHideArgsByDefault : true ,
95- } ,
96+ } ) ,
9697 } ,
9798 } ,
9899 {
@@ -116,9 +117,9 @@ export const ArgsHiddenUserOverride: Story = {
116117 {
117118 hook : useFeatures ,
118119 mockValue : {
119- features : {
120+ features : createFeatures ( {
120121 jobListHideArgsByDefault : false ,
121- } ,
122+ } ) ,
122123 } ,
123124 } ,
124125 {
You can’t perform that action at this time.
0 commit comments