Fix the index of group picture layout

This commit is contained in:
Mimi 2021-11-28 13:44:52 +08:00
parent 9e9c052f08
commit 8e3ec267e0
2 changed files with 7 additions and 7 deletions

View File

@ -10,9 +10,9 @@ const LAYOUTS = {
2: [2]
},
3: {
1: [3],
2: [1, 2],
3: [2, 1]
1: [1, 2],
2: [2, 1],
3: [3]
},
4: {
1: [1, 2, 1],

View File

@ -12,8 +12,8 @@ describe('group-pictures', () => {
before(() => hexo.init().then(() => hexo.loadPlugin(require.resolve('hexo-renderer-marked'))));
it('layout 3-1', () => {
groupPicture(['3-1'], `
it('layout 3-3', () => {
groupPicture(['3-3'], `
![](/images/sample.png)
![](/images/sample.png)
![](/images/sample.png)`).should.eql(`<div class="group-picture"><div class="group-picture-row">${image}${image}${image}</div></div>`);
@ -29,7 +29,7 @@ describe('group-pictures', () => {
});
it('remove text', () => {
groupPicture(['3-1'], `
groupPicture(['3-3'], `
![](/images/sample.png)
Text
![](/images/sample.png)
@ -46,7 +46,7 @@ Text
});
it('set hyperlinks 2', () => {
groupPicture(['3-1'], `
groupPicture(['3-3'], `
![](/images/sample.png)
[![](/images/sample.png)](https://theme-next.js.org/)
![](/images/sample.png)`).should.eql(`<div class="group-picture"><div class="group-picture-row">${image}${link}${image}</div></div>`);