Skip to content

Commit 05e58d3

Browse files
author
Dobromir Hristov
committed
refactor: rename InlineVideo.vue to BlockVideo.vue
1 parent 3ebc903 commit 05e58d3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/ContentNode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import InlineImage from './ContentNode/InlineImage.vue';
2020
import Reference from './ContentNode/Reference.vue';
2121
import Table from './ContentNode/Table.vue';
2222
import StrikeThrough from './ContentNode/StrikeThrough.vue';
23-
import InlineVideo from './ContentNode/InlineVideo.vue';
23+
import BlockVideo from './ContentNode/BlockVideo.vue';
2424
2525
const BlockType = {
2626
aside: 'aside',
@@ -285,7 +285,7 @@ function renderNode(createElement, references) {
285285
}
286286
287287
return references[node.identifier] ? (
288-
createElement(InlineVideo, {
288+
createElement(BlockVideo, {
289289
props: {
290290
identifier: node.identifier,
291291
},

src/components/ContentNode/InlineVideo.vue renamed to src/components/ContentNode/BlockVideo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Asset from 'docc-render/components/Asset.vue';
2323
import isClientMobile from 'docc-render/mixins/isClientMobile';
2424
2525
export default {
26-
name: 'InlineVideo',
26+
name: 'BlockVideo',
2727
mixins: [isClientMobile],
2828
components: { Asset },
2929
props: {

tests/unit/components/ContentNode/InlineVideo.spec.js renamed to tests/unit/components/ContentNode/BlockVideo.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import InlineVideo from '@/components/ContentNode/InlineVideo.vue';
11+
import BlockVideo from '@/components/ContentNode/BlockVideo.vue';
1212
import { shallowMount } from '@vue/test-utils';
1313
import Asset from '@/components/Asset.vue';
1414
import isClientMobile from 'docc-render/mixins/isClientMobile';
@@ -21,11 +21,11 @@ const defaultProps = {
2121
identifier: 'foo',
2222
};
2323

24-
const createWrapper = () => shallowMount(InlineVideo, {
24+
const createWrapper = () => shallowMount(BlockVideo, {
2525
propsData: defaultProps,
2626
});
2727

28-
describe('InlineVideo', () => {
28+
describe('BlockVideo', () => {
2929
it('renders an Asset on desktop', () => {
3030
const wrapper = createWrapper();
3131
expect(wrapper.find(Asset).props()).toEqual({

0 commit comments

Comments
 (0)