File tree Expand file tree Collapse file tree 3 files changed +64
-3
lines changed
Expand file tree Collapse file tree 3 files changed +64
-3
lines changed Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+
3+ import { Meta , StoryFn } from "@storybook/react" ;
4+
5+ import { MethodModeling as MethodModelingComponent } from "../../view/method-modeling/MethodModeling" ;
6+ export default {
7+ title : "Method Modeling / Method Modelin" ,
8+ component : MethodModelingComponent ,
9+ } as Meta < typeof MethodModelingComponent > ;
10+
11+ const Template : StoryFn < typeof MethodModelingComponent > = ( ) => (
12+ < MethodModelingComponent />
13+ ) ;
14+
15+ export const MethodUnmodeled = Template . bind ( { } ) ;
16+ MethodUnmodeled . args = { } ;
17+
18+ export const MethodModeled = Template . bind ( { } ) ;
19+ MethodModeled . args = { } ;
20+
21+ export const MethodSaved = Template . bind ( { } ) ;
22+ MethodSaved . args = { } ;
Original file line number Diff line number Diff line change 11import * as React from "react" ;
2+ import { ModelingStatusIndicator } from "../data-extensions-editor/ModelingStatusIndicator" ;
3+ import { styled } from "styled-components" ;
4+
5+ const Container = styled . div `
6+ background-color: var(--vscode-peekViewResult-background);
7+ padding: 0.3rem;
8+ margin-bottom: 1rem;
9+ ` ;
10+
11+ const Title = styled . div `
12+ padding-bottom: 0.3rem;
13+ font-size: 1.2em;
14+ ` ;
15+
16+ const DependencyBox = styled . div `
17+ display: flex;
18+ justify-content: space-between;
19+ ` ;
20+
21+ const DependencyName = styled . span `
22+ font-family: var(--vscode-editor-font-family);
23+ ` ;
224
325export const MethodModeling = ( ) : JSX . Element => {
426 return (
5- < >
6- < p > Hello</ p >
7- </ >
27+ < Container >
28+ < Title > API or Method</ Title >
29+ < DependencyBox >
30+ < DependencyName > that.dependency.THENAME</ DependencyName >
31+ < ModelingStatusIndicator status = "unmodeled" />
32+ </ DependencyBox >
33+ </ Container >
834 ) ;
935} ;
Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+ import { render as reactRender , screen } from "@testing-library/react" ;
3+ import { MethodModeling } from "../MethodModeling" ;
4+
5+ describe ( MethodModeling . name , ( ) => {
6+ const render = ( ) => reactRender ( < MethodModeling /> ) ;
7+
8+ it ( "renders data flow paths" , ( ) => {
9+ render ( ) ;
10+
11+ expect ( screen . getByText ( "that.dependency.THENAME" ) ) . toBeInTheDocument ( ) ;
12+ } ) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments