Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #5426

Merged
merged 2 commits into from
Feb 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion test/scripts/helpers/css.js
Original file line number Diff line number Diff line change
@@ -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'}]);
2 changes: 1 addition & 1 deletion test/scripts/helpers/full_url_for.js
Original file line number Diff line number Diff line change
@@ -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 + '/');
2 changes: 1 addition & 1 deletion test/scripts/helpers/js.js
Original file line number Diff line number Diff line change
@@ -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'}]);
2 changes: 1 addition & 1 deletion test/scripts/helpers/url_for.js
Original file line number Diff line number Diff line change
@@ -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 = '/';
2 changes: 1 addition & 1 deletion test/scripts/hexo/hexo.js
Original file line number Diff line number Diff line change
@@ -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);
6 changes: 3 additions & 3 deletions test/scripts/hexo/post.js
Original file line number Diff line number Diff line change
@@ -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, {
@@ -1385,8 +1385,8 @@ describe('Post', () => {
data.content.should.not.contains('`'); // `
});

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, {
2 changes: 1 addition & 1 deletion test/scripts/processors/asset.js
Original file line number Diff line number Diff line change
@@ -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',
2 changes: 1 addition & 1 deletion test/scripts/tags/full_url_for.js
Original file line number Diff line number Diff line change
@@ -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 + '/');
2 changes: 1 addition & 1 deletion test/scripts/tags/url_for.js
Original file line number Diff line number Diff line change
@@ -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 = '/';
Loading