Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Feb 20, 2024
1 parent 6bf9e6c commit d35274e
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion test/scripts/helpers/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('css', () => {
assertResult(css({href: '/script.css', foo: 'bar'}), {href: '/script.css', foo: 'bar'});
});

it('mulitple objects', () => {
it('multiple objects', () => {
assertResult(css({href: '/foo.css'}, {href: '/bar.css'}), [{href: '/foo.css'}, {href: '/bar.css'}]);
assertResult(css({href: '/aaa.css', bbb: 'ccc'}, {href: '/ddd.css', eee: 'fff'}),
[{href: '/aaa.css', bbb: 'ccc'}, {href: '/ddd.css', eee: 'fff'}]);
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/helpers/full_url_for.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('full_url_for', () => {
fullUrlFor('/index.html').should.eql(ctx.config.url + '/index.html');
});

it('internel url (pretty_urls.trailing_index disabled)', () => {
it('internal url (pretty_urls.trailing_index disabled)', () => {
ctx.config.pretty_urls = { trailing_index: false };
fullUrlFor('index.html').should.eql(ctx.config.url + '/');
fullUrlFor('/index.html').should.eql(ctx.config.url + '/');
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/helpers/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('js', () => {
assertResult(js({src: '/script.js', foo: 'bar'}), {src: '/script.js', foo: 'bar'});
});

it('mulitple objects', () => {
it('multiple objects', () => {
assertResult(js({src: '/foo.js'}, {src: '/bar.js'}), [{src: '/foo.js'}, {src: '/bar.js'}]);
assertResult(js({src: '/aaa.js', bbb: 'ccc'}, {src: '/ddd.js', eee: 'fff'}),
[{src: '/aaa.js', bbb: 'ccc'}, {src: '/ddd.js', eee: 'fff'}]);
Expand Down
6 changes: 3 additions & 3 deletions test/scripts/helpers/list_archives.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ describe('list_archives', () => {

result.should.eql([
'<ul class="archive-list">',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/02/">Februar 2014</a><span class="archive-list-count">1</span></li>',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/10/">Oktober 2013</a><span class="archive-list-count">1</span></li>',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/06/">Juni 2013</a><span class="archive-list-count">2</span></li>',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/02/">February 2014</a><span class="archive-list-count">1</span></li>',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/10/">October 2013</a><span class="archive-list-count">1</span></li>',
'<li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/06/">June 2013</a><span class="archive-list-count">2</span></li>',
'</ul>'
].join(''));
});
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/helpers/url_for.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('url_for', () => {
ctx.config.relative_link = false;
});

it('internel url (pretty_urls.trailing_index disabled)', () => {
it('internal url (pretty_urls.trailing_index disabled)', () => {
ctx.config.pretty_urls = { trailing_index: false };
ctx.path = '';
ctx.config.root = '/';
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/hexo/hexo.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Hexo', () => {
hexo.config_path.should.eql(join(__dirname, '_config.yml'));
});

it('constructs mutli-config', () => {
it('constructs multi-config', () => {
const configs = ['../../../fixtures/_config.json', '../../../fixtures/_config.json'];
const args = { _: [], config: configs.join(',') };
const hexo = new Hexo(base_dir, args);
Expand Down
6 changes: 3 additions & 3 deletions test/scripts/hexo/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ describe('Post', () => {
});

// https://github.com/hexojs/hexo/issues/5301
it('render() - dont escape uncomplete tags', async () => {
it('render() - dont escape incomplete tags', async () => {
const content = 'dont drop `{% }` 11111 `{# }` 22222 `{{ }` 33333';

const data = await post.render(null, {
Expand All @@ -1385,8 +1385,8 @@ describe('Post', () => {
data.content.should.not.contains('&#96;'); // `
});

it('render() - uncomplete tags throw error', async () => {
const content = 'nunjucks should thorw {# } error';
it('render() - incomplete tags throw error', async () => {
const content = 'nunjucks should throw {# } error';

try {
await post.render(null, {
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/processors/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('asset', () => {
]);
});

it('asset - type: create (when source path is configed to parent directory)', async () => {
it('asset - type: create (when source path is configured to parent directory)', async () => {
const file = newFile({
path: '../../source/foo.jpg',
type: 'create',
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/tags/full_url_for.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('full_url_for', () => {
$('a').html().should.eql('index');
});

it('internel url (pretty_urls.trailing_index disabled)', () => {
it('internal url (pretty_urls.trailing_index disabled)', () => {
ctx.config.pretty_urls = { trailing_index: false };
let $ = cheerio.load(fullUrlFor('index index.html'));
$('a').attr('href').should.eql(ctx.config.url + '/');
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/tags/url_for.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('url_for', () => {
ctx.config.relative_link = false;
});

it('internel url (pretty_urls.trailing_index disabled)', () => {
it('internal url (pretty_urls.trailing_index disabled)', () => {
ctx.config.pretty_urls = { trailing_index: false };
ctx.path = '';
ctx.config.root = '/';
Expand Down

0 comments on commit d35274e

Please sign in to comment.