Skip to content

Commit

Permalink
Adress storybook comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed May 26, 2023
1 parent 8a24ce6 commit 0d00bad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react';
import { faker } from '@faker-js/faker';
import ExpectationsResults from './ExpectationsResults';

export default {
title: 'ExpectationsResults',
component: ExpectationsResults,
};

export const Default = {
args: {
isTargetHost: true,
results: [
Expand All @@ -15,7 +17,3 @@ export default {
errorMessage: 'An error occurred',
},
};

export function Default(args) {
return <ExpectationsResults {...args} />;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react';
import { faker } from '@faker-js/faker';

import ExpectedValues from './ExpectedValues';

export default {
title: 'ExpectedValues',
component: ExpectedValues,
};

export const Default = {
args: {
isTargetHost: true,
expectedValues: [
Expand All @@ -15,7 +17,3 @@ export default {
isError: false,
},
};

export function Default(args) {
return <ExpectedValues {...args} />;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { faker } from '@faker-js/faker';

import GatheredFacts from './GatheredFacts';
Expand All @@ -17,6 +16,9 @@ const factValues = {
export default {
title: 'GatheredFacts',
component: GatheredFacts,
};

export const Default = {
args: {
isTargetHost: true,
gatheredFacts: [
Expand All @@ -33,7 +35,3 @@ export default {
],
},
};

export function Default(args) {
return <GatheredFacts {...args} />;
}

0 comments on commit 0d00bad

Please sign in to comment.