Fix Print Width

This commit is contained in:
Samuel W 2020-05-09 00:12:57 +08:00
parent 4592baba95
commit 66ee71d4cf
3 changed files with 5 additions and 8 deletions

View File

@ -2,5 +2,6 @@
"trailingComma": "es5", "trailingComma": "es5",
"tabWidth": 2, "tabWidth": 2,
"semi": true, "semi": true,
"singleQuote": true "singleQuote": true,
"printWidth": 120
} }

View File

@ -4,8 +4,7 @@ module.exports = {
url: 'https://lumen.netlify.com', url: 'https://lumen.netlify.com',
pathPrefix: '/', pathPrefix: '/',
title: 'Blog by John Doe', title: 'Blog by John Doe',
subtitle: subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
copyright: '© All rights reserved.', copyright: '© All rights reserved.',
disqusShortname: '', disqusShortname: '',
postsPerPage: 4, postsPerPage: 4,
@ -28,8 +27,7 @@ module.exports = {
author: { author: {
name: 'John Doe', name: 'John Doe',
photo: '/photo.jpg', photo: '/photo.jpg',
bio: bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
contacts: { contacts: {
email: '', email: '',
facebook: '#', facebook: '#',

View File

@ -15,9 +15,7 @@ test('getContactHref', () => {
expect(getContactHref('gitlab', '#')).toBe('https://www.gitlab.com/#'); expect(getContactHref('gitlab', '#')).toBe('https://www.gitlab.com/#');
expect(getContactHref('weibo', '#')).toBe('https://www.weibo.com/#'); expect(getContactHref('weibo', '#')).toBe('https://www.weibo.com/#');
expect(getContactHref('codepen', '#')).toBe('https://www.codepen.io/#'); expect(getContactHref('codepen', '#')).toBe('https://www.codepen.io/#');
expect(getContactHref('youtube', '#')).toBe( expect(getContactHref('youtube', '#')).toBe('https://www.youtube.com/channel/#');
'https://www.youtube.com/channel/#'
);
expect(getContactHref('soundcloud', '#')).toBe('https://soundcloud.com/#'); expect(getContactHref('soundcloud', '#')).toBe('https://soundcloud.com/#');
expect(getContactHref('medium', '#')).toBe('https://medium.com/#'); expect(getContactHref('medium', '#')).toBe('https://medium.com/#');
}); });