Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

feat: song info & detail #49

Merged
merged 7 commits into from
Mar 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions __tests__/pages/series/_id/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ describe('pages/series/_id/index.vue', () => {
})
expect(wrapper.element).toMatchSnapshot()
})
test('renders blank', () => {
const wrapper = shallowMount(SeriesDetail, {
localVue,
data: () => ({ info: undefined, chartRows })
})
expect(wrapper.html()).toBe('')
})
describe('asyncData()', () => {
let asyncData: ({
params,
Expand Down
282 changes: 282 additions & 0 deletions __tests__/pages/song/__snapshots__/_id.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`pages/series/_id/index.vue renders correctly 1`] = `
<section
class="section"
>
<h1
class="title"
>
BOYS / smile. dk
</h1>

<h2
class="subtitle"
>
BPM 138
</h2>

<div
class="buttons"
>
<a
class="button is-small is-info"
type="button"
>
<!---->

<span>

1st-jp

</span>

<!---->
</a>
<a
class="button is-small is-success"
type="button"
>
<!---->

<span>

2nd-remix-jp

</span>

<!---->
</a>
</div>

<div
class="b-table has-mobile-cards"
>
<!---->

<!---->

<div
class="table-wrapper"
>
<table
class="table is-striped"
>
<!---->

<tbody>
<tr
class=""
draggable="false"
>
<!---->

<!---->

<td
class=""
data-label="PlayStyle"
>

SINGLE

</td>

<td
class=""
data-label="Difficulty"
>

1

</td>

<td
class=""
data-label="Level"
>

3

</td>

<!---->
</tr>

<!---->

<!---->
<tr
class=""
draggable="false"
>
<!---->

<!---->

<td
class=""
data-label="PlayStyle"
>

SINGLE

</td>

<td
class=""
data-label="Difficulty"
>

2

</td>

<td
class=""
data-label="Level"
>

4

</td>

<!---->
</tr>

<!---->

<!---->
<tr
class=""
draggable="false"
>
<!---->

<!---->

<td
class=""
data-label="PlayStyle"
>

SINGLE

</td>

<td
class=""
data-label="Difficulty"
>

3

</td>

<td
class=""
data-label="Level"
>

7

</td>

<!---->
</tr>

<!---->

<!---->
<tr
class=""
draggable="false"
>
<!---->

<!---->

<td
class=""
data-label="PlayStyle"
>

SINGLE

</td>

<td
class=""
data-label="Difficulty"
>

1

</td>

<td
class=""
data-label="Level"
>

4

</td>

<!---->
</tr>

<!---->

<!---->
<tr
class=""
draggable="false"
>
<!---->

<!---->

<td
class=""
data-label="PlayStyle"
>

SINGLE

</td>

<td
class=""
data-label="Difficulty"
>

2

</td>

<td
class=""
data-label="Level"
>

5

</td>

<!---->
</tr>

<!---->

<!---->
</tbody>

<!---->
</table>
</div>

<!---->
</div>
</section>
`;
Loading