Skip to content

Commit

Permalink
fix: rename test to it for story-target
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 23, 2021
1 parent a55b9fd commit c0363db
Show file tree
Hide file tree
Showing 21 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion plugins/cc-cli/src/stories-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe('{{=it.name}}', () => {
{{=it.load}}
{{=it.doc}}
{{~ it.stories :story }}
test('{{=story.name}}', () => {
it('{{=story.name}}', () => {
{{? it.bundlePath }}
const story = store.stories['{{=story.id}}'];
{{?? true }}
Expand Down
2 changes: 1 addition & 1 deletion plugins/cc-cli/test/Header.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Header', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);

test('overview', () => {
it('overview', () => {
const example = overview;

let rendered;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
const rendered = renderFn(story, doc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
const rendered = renderFn(story, doc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
const rendered = renderFn(story, doc);
Expand Down
14 changes: 7 additions & 7 deletions plugins/cc-cli/test/__snapshots__/story-enzyme-cjs.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('VariantButton', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);
test('overview', () => {
it('overview', () => {
const example = overview;
const rendered = renderExample({
Expand All @@ -38,7 +38,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('primary', () => {
it('primary', () => {
const example = primary;
const rendered = renderExample({
Expand All @@ -51,7 +51,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('accent', () => {
it('accent', () => {
const example = accent;
const rendered = renderExample({
Expand All @@ -64,7 +64,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('disabled', () => {
it('disabled', () => {
const example = disabled;
const rendered = renderExample({
Expand All @@ -77,7 +77,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('success', () => {
it('success', () => {
const example = success;
const rendered = renderExample({
Expand All @@ -90,7 +90,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('error', () => {
it('error', () => {
const example = error;
const rendered = renderExample({
Expand All @@ -103,7 +103,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('warning', () => {
it('warning', () => {
const example = warning;
const rendered = renderExample({
Expand Down
14 changes: 7 additions & 7 deletions plugins/cc-cli/test/__snapshots__/story-enzyme-esm.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('VariantButton', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);
test('overview', () => {
it('overview', () => {
const example = overview;
const rendered = renderExample({
Expand All @@ -37,7 +37,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('primary', () => {
it('primary', () => {
const example = primary;
const rendered = renderExample({
Expand All @@ -50,7 +50,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('accent', () => {
it('accent', () => {
const example = accent;
const rendered = renderExample({
Expand All @@ -63,7 +63,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('disabled', () => {
it('disabled', () => {
const example = disabled;
const rendered = renderExample({
Expand All @@ -76,7 +76,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('success', () => {
it('success', () => {
const example = success;
const rendered = renderExample({
Expand All @@ -89,7 +89,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('error', () => {
it('error', () => {
const example = error;
const rendered = renderExample({
Expand All @@ -102,7 +102,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('warning', () => {
it('warning', () => {
const example = warning;
const rendered = renderExample({
Expand Down
14 changes: 7 additions & 7 deletions plugins/cc-cli/test/__snapshots__/story-enzyme-ts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('VariantButton', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);
test('overview', () => {
it('overview', () => {
const example = overview;
const rendered = renderExample({
Expand All @@ -37,7 +37,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('primary', () => {
it('primary', () => {
const example = primary;
const rendered = renderExample({
Expand All @@ -50,7 +50,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('accent', () => {
it('accent', () => {
const example = accent;
const rendered = renderExample({
Expand All @@ -63,7 +63,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('disabled', () => {
it('disabled', () => {
const example = disabled;
const rendered = renderExample({
Expand All @@ -76,7 +76,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('success', () => {
it('success', () => {
const example = success;
const rendered = renderExample({
Expand All @@ -89,7 +89,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('error', () => {
it('error', () => {
const example = error;
const rendered = renderExample({
Expand All @@ -102,7 +102,7 @@ describe('VariantButton', () => {
expect(toJson(component, { mode: 'deep' })).toMatchSnapshot();
});
test('warning', () => {
it('warning', () => {
const example = warning;
const rendered = renderExample({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
let rendered;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
let rendered;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Components/Header', () => {
const renderFn = store.config.renderFn;
const doc = store.docs['Components/Header'];
test('Overview', () => {
it('Overview', () => {
const story = store.stories['components-header--overview'];
let rendered;
Expand Down
14 changes: 7 additions & 7 deletions plugins/cc-cli/test/__snapshots__/story-rtl-cjs.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('VariantButton', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);
test('overview', () => {
it('overview', () => {
const example = overview;
let rendered;
Expand All @@ -41,7 +41,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('primary', () => {
it('primary', () => {
const example = primary;
let rendered;
Expand All @@ -60,7 +60,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('accent', () => {
it('accent', () => {
const example = accent;
let rendered;
Expand All @@ -79,7 +79,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('disabled', () => {
it('disabled', () => {
const example = disabled;
let rendered;
Expand All @@ -98,7 +98,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('success', () => {
it('success', () => {
const example = success;
let rendered;
Expand All @@ -117,7 +117,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('error', () => {
it('error', () => {
const example = error;
let rendered;
Expand All @@ -136,7 +136,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('warning', () => {
it('warning', () => {
const example = warning;
let rendered;
Expand Down
14 changes: 7 additions & 7 deletions plugins/cc-cli/test/__snapshots__/story-rtl-esm.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('VariantButton', () => {
const configPath = path.resolve(__dirname, '.config');
const config = loadConfigurations(configPath);
test('overview', () => {
it('overview', () => {
const example = overview;
let rendered;
Expand All @@ -40,7 +40,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('primary', () => {
it('primary', () => {
const example = primary;
let rendered;
Expand All @@ -59,7 +59,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('accent', () => {
it('accent', () => {
const example = accent;
let rendered;
Expand All @@ -78,7 +78,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('disabled', () => {
it('disabled', () => {
const example = disabled;
let rendered;
Expand All @@ -97,7 +97,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('success', () => {
it('success', () => {
const example = success;
let rendered;
Expand All @@ -116,7 +116,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('error', () => {
it('error', () => {
const example = error;
let rendered;
Expand All @@ -135,7 +135,7 @@ describe('VariantButton', () => {
expect(asFragment()).toMatchSnapshot();
});
test('warning', () => {
it('warning', () => {
const example = warning;
let rendered;
Expand Down
Loading

0 comments on commit c0363db

Please sign in to comment.