Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 26, 2024
1 parent 4395f27 commit f5676db
Show file tree
Hide file tree
Showing 23 changed files with 866 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "test"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "test"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "test"
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "test"
}
Empty file.
3 changes: 3 additions & 0 deletions tools/helper/tests/__fixtures__/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
home: true
---
7 changes: 7 additions & 0 deletions tools/helper/tests/__fixtures__/src/component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Component test
---

A text with <Badge text="test" />.

<VueComponent test="1" :test2="2"></VueComponent>
96 changes: 96 additions & 0 deletions tools/helper/tests/__fixtures__/src/cut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: Cut out test
---

A long code block which is expected to be cut of

```js
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
const a = 1;
```
29 changes: 29 additions & 0 deletions tools/helper/tests/__fixtures__/src/demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: Demo Page
author: Mr.Hope
date: 2021-01-01
category:
- Demo
tag:
- Demo
---

Here is **article excerpt**.

```js
const a = 1;
```

<!-- more -->

## Content

Here is main content of **article**.

1. A
1. B
1. C

```js
const a = 1;
```
114 changes: 114 additions & 0 deletions tools/helper/tests/__fixtures__/src/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

## Text

This sentence has **bold**_italic_ and ~~delete~~ style text.

## Paragraph

This is a paragraph.

This is another paragraph.

## Line Break

I would like to line break at
this point

::: tip

In codes above, two spaces are behind `at`.

:::

## Blockquotes

> Blockquotes can also be nested...
>
> > ...by using greater-than signs right next to each other...
> >
> > > ...or with spaces between arrows.
## List

### Unordered List

- Create a list by starting a line with `-`
- Make sub-lists by indenting 2 spaces:

- Marker character change forces new list start:

- Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
link break

New paragraph

- It’s easy!

### Ordered List

1. Lorem ipsum dolor sit amet
1. Consectetur adipiscing elit
line break
line break again
1. Integer molestie lorem at massa

## HR

---

## Link

[Home page using absolute path](/)

[Home page using relative path](../../README.md)

## Image

![Logo](/logo.svg)

## Emoji

Classic:

:wink: :cry: :laughing: :yum:

## Tables

| center | right | left |
| :------------------------: | -----------------------: | :---------------------- |
| For center align use `:-:` | For right align use `-:` | For left align use `:-` |
| b | aaaaaaaaa | aaaa |
| c | aaaa | a |

## Codes

Inline Code: `code`

Block code:

```
Sample text here...
```

Syntax highlighting:

```js
var foo = function (bar) {
return bar++;
};

console.log(foo(5));
```
13 changes: 13 additions & 0 deletions tools/helper/tests/__fixtures__/src/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Link
---

This is a [link](./demo.md) referencing other markdown.

![logo](/logo.svg)

![logo](/logo.svg)

![logo](https://exmaple.com/logo.svg)

A inline image ![logo](./assets/not-exisit.jpg), ![logo](/logo.svg) and a ![logo](https://exmaple.com/logo.svg).
5 changes: 5 additions & 0 deletions tools/helper/tests/__fixtures__/theme/empty.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { Theme } from 'vuepress/core'

export const emptyTheme: Theme = {
name: 'vuepress-theme-empty',
}
Loading

0 comments on commit f5676db

Please sign in to comment.