@teambit/component.ui.version-dropdown 0.0.0-0aa660598a05d04f2b124cb0ae8b4a1c05b66d78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/lane-info/index.d.ts +2 -0
- package/dist/lane-info/index.js +6 -0
- package/dist/lane-info/index.js.map +1 -0
- package/dist/lane-info/lane-info.d.ts +6 -0
- package/dist/lane-info/lane-info.js +20 -0
- package/dist/lane-info/lane-info.js.map +1 -0
- package/dist/lane-info/lane-info.module.scss +27 -0
- package/dist/preview-1753890535938.js +7 -0
- package/dist/version-dropdown-placeholder.d.ts +17 -0
- package/dist/version-dropdown-placeholder.js +92 -0
- package/dist/version-dropdown-placeholder.js.map +1 -0
- package/dist/version-dropdown-placeholder.module.scss +50 -0
- package/dist/version-dropdown.composition.d.ts +3 -0
- package/dist/version-dropdown.composition.js +28 -0
- package/dist/version-dropdown.composition.js.map +1 -0
- package/dist/version-dropdown.d.ts +53 -0
- package/dist/version-dropdown.docs.d.ts +35 -0
- package/dist/version-dropdown.docs.js +67 -0
- package/dist/version-dropdown.docs.js.map +1 -0
- package/dist/version-dropdown.js +153 -0
- package/dist/version-dropdown.js.map +1 -0
- package/dist/version-dropdown.module.scss +128 -0
- package/dist/version-dropdown.spec.d.ts +1 -0
- package/dist/version-dropdown.spec.js +33 -0
- package/dist/version-dropdown.spec.js.map +1 -0
- package/dist/version-info/index.d.ts +2 -0
- package/dist/version-info/index.js +6 -0
- package/dist/version-info/index.js.map +1 -0
- package/dist/version-info/version-info.d.ts +10 -0
- package/dist/version-info/version-info.js +79 -0
- package/dist/version-info/version-info.js.map +1 -0
- package/dist/version-info/version-info.module.scss +54 -0
- package/index.ts +4 -0
- package/lane-info/index.ts +2 -0
- package/lane-info/lane-info.module.scss +27 -0
- package/lane-info/lane-info.tsx +23 -0
- package/package.json +71 -0
- package/types/asset.d.ts +29 -0
- package/types/style.d.ts +42 -0
- package/version-dropdown-placeholder.module.scss +50 -0
- package/version-dropdown-placeholder.tsx +109 -0
- package/version-dropdown.composition.tsx +36 -0
- package/version-dropdown.docs.tsx +68 -0
- package/version-dropdown.module.scss +128 -0
- package/version-dropdown.spec.tsx +29 -0
- package/version-dropdown.tsx +331 -0
- package/version-info/index.ts +2 -0
- package/version-info/version-info.module.scss +54 -0
- package/version-info/version-info.tsx +87 -0
package/types/asset.d.ts
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
declare module '*.png' {
|
2
|
+
const value: any;
|
3
|
+
export = value;
|
4
|
+
}
|
5
|
+
declare module '*.svg' {
|
6
|
+
import type { FunctionComponent, SVGProps } from 'react';
|
7
|
+
|
8
|
+
export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
|
9
|
+
const src: string;
|
10
|
+
export default src;
|
11
|
+
}
|
12
|
+
|
13
|
+
// @TODO Gilad
|
14
|
+
declare module '*.jpg' {
|
15
|
+
const value: any;
|
16
|
+
export = value;
|
17
|
+
}
|
18
|
+
declare module '*.jpeg' {
|
19
|
+
const value: any;
|
20
|
+
export = value;
|
21
|
+
}
|
22
|
+
declare module '*.gif' {
|
23
|
+
const value: any;
|
24
|
+
export = value;
|
25
|
+
}
|
26
|
+
declare module '*.bmp' {
|
27
|
+
const value: any;
|
28
|
+
export = value;
|
29
|
+
}
|
package/types/style.d.ts
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
declare module '*.module.css' {
|
2
|
+
const classes: { readonly [key: string]: string };
|
3
|
+
export default classes;
|
4
|
+
}
|
5
|
+
declare module '*.module.scss' {
|
6
|
+
const classes: { readonly [key: string]: string };
|
7
|
+
export default classes;
|
8
|
+
}
|
9
|
+
declare module '*.module.sass' {
|
10
|
+
const classes: { readonly [key: string]: string };
|
11
|
+
export default classes;
|
12
|
+
}
|
13
|
+
|
14
|
+
declare module '*.module.less' {
|
15
|
+
const classes: { readonly [key: string]: string };
|
16
|
+
export default classes;
|
17
|
+
}
|
18
|
+
|
19
|
+
declare module '*.less' {
|
20
|
+
const classes: { readonly [key: string]: string };
|
21
|
+
export default classes;
|
22
|
+
}
|
23
|
+
|
24
|
+
declare module '*.css' {
|
25
|
+
const classes: { readonly [key: string]: string };
|
26
|
+
export default classes;
|
27
|
+
}
|
28
|
+
|
29
|
+
declare module '*.sass' {
|
30
|
+
const classes: { readonly [key: string]: string };
|
31
|
+
export default classes;
|
32
|
+
}
|
33
|
+
|
34
|
+
declare module '*.scss' {
|
35
|
+
const classes: { readonly [key: string]: string };
|
36
|
+
export default classes;
|
37
|
+
}
|
38
|
+
|
39
|
+
declare module '*.mdx' {
|
40
|
+
const component: any;
|
41
|
+
export default component;
|
42
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.simple,
|
2
|
+
.detailed {
|
3
|
+
cursor: pointer;
|
4
|
+
border: 1px solid var(--bit-border-color, #babec9);
|
5
|
+
border-radius: 6px;
|
6
|
+
transition: background-color 300ms ease-in-out;
|
7
|
+
height: 30px;
|
8
|
+
display: flex;
|
9
|
+
align-items: center;
|
10
|
+
box-sizing: border-box;
|
11
|
+
user-select: none;
|
12
|
+
flex-wrap: nowrap;
|
13
|
+
gap: 8px;
|
14
|
+
padding: 8px;
|
15
|
+
line-height: 1.2em;
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
background-color: var(--bit-bg-heavy);
|
19
|
+
}
|
20
|
+
|
21
|
+
&.disabled {
|
22
|
+
cursor: default;
|
23
|
+
background-color: var(--border-medium-color, #ededed);
|
24
|
+
color: var(--on-background-medium-color, #707279);
|
25
|
+
> span {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
.versionName {
|
31
|
+
flex-grow: 1;
|
32
|
+
min-width: fit-content;
|
33
|
+
}
|
34
|
+
|
35
|
+
.commitMessage {
|
36
|
+
flex-grow: 1;
|
37
|
+
max-width: 200px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.versionUserAvatar {
|
41
|
+
flex: none;
|
42
|
+
margin-right: 5px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.loader {
|
46
|
+
color: var(--bit-bg-dent, #f6f6f6);
|
47
|
+
> span {
|
48
|
+
padding: 4px;
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
2
|
+
import React from 'react';
|
3
|
+
import { Ellipsis } from '@teambit/design.ui.styles.ellipsis';
|
4
|
+
import classNames from 'classnames';
|
5
|
+
import * as semver from 'semver';
|
6
|
+
import { Icon } from '@teambit/evangelist.elements.icon';
|
7
|
+
import { TimeAgo } from '@teambit/design.ui.time-ago';
|
8
|
+
import { UserAvatar } from '@teambit/design.ui.avatar';
|
9
|
+
import { WordSkeleton } from '@teambit/base-ui.loaders.skeleton';
|
10
|
+
import type { DropdownComponentVersion } from './version-dropdown';
|
11
|
+
|
12
|
+
import styles from './version-dropdown-placeholder.module.scss';
|
13
|
+
|
14
|
+
export type VersionProps = {
|
15
|
+
currentVersion?: string;
|
16
|
+
isTag?: (version?: string) => boolean;
|
17
|
+
disabled?: boolean;
|
18
|
+
hasMoreVersions?: boolean;
|
19
|
+
showFullVersion?: boolean;
|
20
|
+
loading?: boolean;
|
21
|
+
useCurrentVersionLog?: (props: { skip?: boolean; version?: string }) => DropdownComponentVersion | undefined;
|
22
|
+
} & HTMLAttributes<HTMLDivElement>;
|
23
|
+
|
24
|
+
export function SimpleVersion({
|
25
|
+
currentVersion,
|
26
|
+
className,
|
27
|
+
disabled,
|
28
|
+
hasMoreVersions,
|
29
|
+
isTag = (version) => semver.valid(version) !== null,
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
31
|
+
useCurrentVersionLog,
|
32
|
+
showFullVersion,
|
33
|
+
loading,
|
34
|
+
...rest
|
35
|
+
}: VersionProps) {
|
36
|
+
if (loading) return <WordSkeleton className={styles.loader} length={9} />;
|
37
|
+
const formattedVersion = showFullVersion || isTag(currentVersion) ? currentVersion : currentVersion?.slice(0, 6);
|
38
|
+
|
39
|
+
return (
|
40
|
+
<div {...rest} className={classNames(styles.simple, className, disabled && styles.disabled)}>
|
41
|
+
<Ellipsis className={classNames(styles.versionName)} onClick={rest.onClick}>
|
42
|
+
{formattedVersion}
|
43
|
+
</Ellipsis>
|
44
|
+
{hasMoreVersions && <Icon of="fat-arrow-down" onClick={rest.onClick} />}
|
45
|
+
</div>
|
46
|
+
);
|
47
|
+
}
|
48
|
+
|
49
|
+
export function DetailedVersion({
|
50
|
+
currentVersion,
|
51
|
+
className,
|
52
|
+
disabled,
|
53
|
+
hasMoreVersions,
|
54
|
+
isTag = (version) => semver.valid(version) !== null,
|
55
|
+
loading,
|
56
|
+
useCurrentVersionLog,
|
57
|
+
showFullVersion,
|
58
|
+
...rest
|
59
|
+
}: VersionProps) {
|
60
|
+
const currentVersionLog = useCurrentVersionLog?.({ skip: loading, version: currentVersion });
|
61
|
+
const { displayName, message, username, email, date: _date, profileImage } = currentVersionLog || {};
|
62
|
+
const author = React.useMemo(() => {
|
63
|
+
return {
|
64
|
+
displayName: displayName ?? '',
|
65
|
+
email,
|
66
|
+
name: username ?? '',
|
67
|
+
profileImage,
|
68
|
+
};
|
69
|
+
}, [displayName, email, username, profileImage]);
|
70
|
+
const formattedVersion = showFullVersion || isTag(currentVersion) ? currentVersion : currentVersion?.slice(0, 6);
|
71
|
+
|
72
|
+
const date = _date ? new Date(+_date) : undefined;
|
73
|
+
const timestamp = React.useMemo(() => (date ? new Date(+date).toString() : new Date().toString()), [date]);
|
74
|
+
if (loading) return <WordSkeleton className={styles.loader} length={9} />;
|
75
|
+
|
76
|
+
return (
|
77
|
+
<div {...rest} className={classNames(styles.detailed, className, disabled && styles.disabled)}>
|
78
|
+
<UserAvatar
|
79
|
+
size={24}
|
80
|
+
account={author ?? {}}
|
81
|
+
className={styles.versionUserAvatar}
|
82
|
+
showTooltip={true}
|
83
|
+
onClick={rest.onClick}
|
84
|
+
/>
|
85
|
+
<Ellipsis className={classNames(styles.versionName)} onClick={rest.onClick}>
|
86
|
+
{formattedVersion}
|
87
|
+
</Ellipsis>
|
88
|
+
{commitMessage(message, rest.onClick)}
|
89
|
+
<Ellipsis className={styles.versionTimestamp} onClick={rest.onClick}>
|
90
|
+
<TimeAgo date={timestamp} onClick={rest.onClick} />
|
91
|
+
</Ellipsis>
|
92
|
+
{hasMoreVersions && <Icon of="fat-arrow-down" onClick={rest.onClick} />}
|
93
|
+
</div>
|
94
|
+
);
|
95
|
+
}
|
96
|
+
|
97
|
+
function commitMessage(message?: string, onClick?: React.MouseEventHandler<HTMLDivElement> | undefined) {
|
98
|
+
if (!message || message === '')
|
99
|
+
return (
|
100
|
+
<Ellipsis className={styles.emptyMessage} onClick={onClick}>
|
101
|
+
No commit message
|
102
|
+
</Ellipsis>
|
103
|
+
);
|
104
|
+
return (
|
105
|
+
<Ellipsis className={styles.commitMessage} onClick={onClick}>
|
106
|
+
{message}
|
107
|
+
</Ellipsis>
|
108
|
+
);
|
109
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MemoryRouter } from 'react-router-dom';
|
3
|
+
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
4
|
+
import { VersionDropdown } from './version-dropdown';
|
5
|
+
|
6
|
+
const style = { display: 'flex', justifyContent: 'center', alignContent: 'center' };
|
7
|
+
|
8
|
+
export const VersionDropdownWithOneVersion = () => {
|
9
|
+
return (
|
10
|
+
<ThemeCompositions style={style}>
|
11
|
+
<VersionDropdown
|
12
|
+
useComponentVersions={() => ({
|
13
|
+
tags: [{ version: '0.1' }],
|
14
|
+
})}
|
15
|
+
currentVersion="0.1"
|
16
|
+
/>
|
17
|
+
</ThemeCompositions>
|
18
|
+
);
|
19
|
+
};
|
20
|
+
|
21
|
+
export const VersionDropdownWithMultipleVersions = () => {
|
22
|
+
const versions = ['0.3', '0.2', '0.1'].map((version) => ({ version }));
|
23
|
+
|
24
|
+
return (
|
25
|
+
<ThemeCompositions style={style}>
|
26
|
+
<MemoryRouter>
|
27
|
+
<VersionDropdown
|
28
|
+
useComponentVersions={() => ({
|
29
|
+
tags: [{ version: '0.1' }],
|
30
|
+
})}
|
31
|
+
currentVersion={versions[0].version}
|
32
|
+
/>
|
33
|
+
</MemoryRouter>
|
34
|
+
</ThemeCompositions>
|
35
|
+
);
|
36
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MemoryRouter } from 'react-router-dom';
|
3
|
+
import { Section } from '@teambit/documenter.ui.section';
|
4
|
+
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
5
|
+
import { Separator } from '@teambit/documenter.ui.separator';
|
6
|
+
import { VersionDropdown } from './version-dropdown';
|
7
|
+
|
8
|
+
export default function Overview() {
|
9
|
+
return (
|
10
|
+
<ThemeCompositions>
|
11
|
+
<>
|
12
|
+
<Section>
|
13
|
+
The version-dropdown displays the latest version of the viewed component. <br />
|
14
|
+
If previous versions are available, the component will display a list of them, when clicked. <br />
|
15
|
+
This allows the user to navigate to previous versions, and explore them.
|
16
|
+
</Section>
|
17
|
+
<Separator />
|
18
|
+
</>
|
19
|
+
</ThemeCompositions>
|
20
|
+
);
|
21
|
+
}
|
22
|
+
|
23
|
+
Overview.abstract = 'The version-dropdown lists the latest and previous versions of the viewed component.';
|
24
|
+
|
25
|
+
Overview.labels = ['react', 'typescript', 'version', 'dropdown'];
|
26
|
+
|
27
|
+
const style = { display: 'flex', justifyContent: 'center', alignContent: 'center' };
|
28
|
+
|
29
|
+
Overview.examples = [
|
30
|
+
{
|
31
|
+
scope: {
|
32
|
+
VersionDropdown,
|
33
|
+
style,
|
34
|
+
},
|
35
|
+
title: 'Version Dropdown',
|
36
|
+
description: 'Using the Version Dropdown component with one verion',
|
37
|
+
code: `
|
38
|
+
() => {
|
39
|
+
return (
|
40
|
+
<div style={{...style, minHeight: 150 }}>
|
41
|
+
<VersionDropdown versions={['0.1']} currentVersion="0.1" />
|
42
|
+
</div>
|
43
|
+
);
|
44
|
+
}
|
45
|
+
`,
|
46
|
+
},
|
47
|
+
{
|
48
|
+
scope: {
|
49
|
+
VersionDropdown,
|
50
|
+
style,
|
51
|
+
MemoryRouter,
|
52
|
+
},
|
53
|
+
title: 'Version Dropdown with multiple versions',
|
54
|
+
description: 'Using the Version Dropdown component with more than one version',
|
55
|
+
code: `
|
56
|
+
() => {
|
57
|
+
const versions = ['0.3', '0.2', '0.1'];
|
58
|
+
return (
|
59
|
+
<div style={{...style, minHeight: 400, alignItems: 'end', justifyContent: 'flex-end', margin: 10 }}>
|
60
|
+
<MemoryRouter>
|
61
|
+
<VersionDropdown versions={versions} currentVersion={versions[0]} />
|
62
|
+
</MemoryRouter>
|
63
|
+
</div>
|
64
|
+
);
|
65
|
+
}
|
66
|
+
`,
|
67
|
+
},
|
68
|
+
];
|
@@ -0,0 +1,128 @@
|
|
1
|
+
@import '@teambit/ui-foundation.ui.constants.z-indexes/z-indexes.module.scss';
|
2
|
+
|
3
|
+
.versionDropdown {
|
4
|
+
height: 100%;
|
5
|
+
|
6
|
+
> div {
|
7
|
+
height: 100%;
|
8
|
+
display: flex;
|
9
|
+
align-items: center;
|
10
|
+
}
|
11
|
+
.menu {
|
12
|
+
padding: 0;
|
13
|
+
right: 0;
|
14
|
+
// top: 43px;
|
15
|
+
font-size: var(--bit-p-xs);
|
16
|
+
border-radius: 6px;
|
17
|
+
z-index: $modal-z-index;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.title {
|
22
|
+
padding: 16px;
|
23
|
+
padding-bottom: 12px;
|
24
|
+
border-bottom: 1px solid var(--bit-border-color-lightest, #ededed);
|
25
|
+
}
|
26
|
+
|
27
|
+
.titleContainer {
|
28
|
+
margin-bottom: 2px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.versionContainerRoot {
|
32
|
+
max-height: 240px;
|
33
|
+
overflow-y: scroll;
|
34
|
+
padding-bottom: 8px;
|
35
|
+
position: relative;
|
36
|
+
}
|
37
|
+
|
38
|
+
.versionRow {
|
39
|
+
display: flex;
|
40
|
+
justify-content: space-between;
|
41
|
+
align-items: center;
|
42
|
+
height: 40px;
|
43
|
+
padding: 0 16px;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
background-color: var(--surface-hover-color, #eceaff) !important;
|
47
|
+
}
|
48
|
+
|
49
|
+
&.localVersion {
|
50
|
+
border-bottom: 1px solid var(--bit-border-color-lightest, #ededed);
|
51
|
+
}
|
52
|
+
.versionTimestamp {
|
53
|
+
margin-right: 2px;
|
54
|
+
}
|
55
|
+
.versionUserAvatar {
|
56
|
+
padding: 0px 8px;
|
57
|
+
}
|
58
|
+
.laneIcon {
|
59
|
+
padding: 0px 4px;
|
60
|
+
}
|
61
|
+
.version {
|
62
|
+
width: 60%;
|
63
|
+
display: flex;
|
64
|
+
flex-direction: row;
|
65
|
+
align-content: space-between;
|
66
|
+
align-items: center;
|
67
|
+
}
|
68
|
+
.versionName {
|
69
|
+
padding: 0px 8px;
|
70
|
+
min-width: fit-content;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.withVersions {
|
75
|
+
cursor: pointer;
|
76
|
+
> div {
|
77
|
+
margin-right: 5px;
|
78
|
+
}
|
79
|
+
> span {
|
80
|
+
display: unset;
|
81
|
+
}
|
82
|
+
&:hover {
|
83
|
+
background-color: var(--bit-bg-heavy);
|
84
|
+
}
|
85
|
+
[data-open='true'] & {
|
86
|
+
transition:
|
87
|
+
color 300ms,
|
88
|
+
background-color 300ms ease-in-out;
|
89
|
+
background-color: var(--bit-bg-color, #ffffff);
|
90
|
+
color: var(--bit-accent-color, #6c5ce7);
|
91
|
+
&:hover {
|
92
|
+
background-color: var(--bit-bg-color, #ffffff);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.tabs {
|
98
|
+
display: flex;
|
99
|
+
padding: 0 24px;
|
100
|
+
line-height: 14px;
|
101
|
+
border-bottom: 1px solid var(--bit-border-color-lightest, #ededed);
|
102
|
+
overflow-x: auto;
|
103
|
+
margin-top: 8px;
|
104
|
+
|
105
|
+
.tab {
|
106
|
+
font-weight: bold;
|
107
|
+
padding-top: 4px;
|
108
|
+
font-size: 12px;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
.loading {
|
113
|
+
color: var(--bit-bg-dent, #f6f6f6);
|
114
|
+
}
|
115
|
+
|
116
|
+
.loader {
|
117
|
+
color: var(--bit-bg-dent, #f6f6f6);
|
118
|
+
> div {
|
119
|
+
padding: 8px 0px;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.versionMenuContainer {
|
124
|
+
display: initial;
|
125
|
+
&.hide {
|
126
|
+
display: none;
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { render, screen } from '@testing-library/react';
|
3
|
+
import { expect } from 'chai';
|
4
|
+
import { VersionDropdownWithOneVersion, VersionDropdownWithMultipleVersions } from './version-dropdown.composition';
|
5
|
+
|
6
|
+
describe('version dropdown tests', () => {
|
7
|
+
/**
|
8
|
+
* https://github.com/jsdom/jsdom/issues/1695
|
9
|
+
* scrollIntoView is not implemented in jsdom
|
10
|
+
* */
|
11
|
+
beforeEach(() => {
|
12
|
+
Element.prototype.scrollIntoView = jest.fn();
|
13
|
+
});
|
14
|
+
it('should render one version', () => {
|
15
|
+
const { getByText } = render(<VersionDropdownWithOneVersion />);
|
16
|
+
const textVersion = getByText(/^0.1$/);
|
17
|
+
expect(textVersion).to.exist;
|
18
|
+
});
|
19
|
+
it('should not return multiple versions when mounted (lazy loading)', () => {
|
20
|
+
render(<VersionDropdownWithMultipleVersions />);
|
21
|
+
const textVersionOne = screen.queryByText(/^0.1$/);
|
22
|
+
const textVersionTwo = screen.queryByText(/^0.2$/);
|
23
|
+
const textVersionThree = screen.getAllByText(/^0.3$/);
|
24
|
+
|
25
|
+
expect(textVersionOne).to.be.null;
|
26
|
+
expect(textVersionTwo).to.be.null;
|
27
|
+
expect(textVersionThree).to.have.lengthOf.at.least(1);
|
28
|
+
});
|
29
|
+
});
|