Skip to content

Commit

Permalink
release: 5.4.0 (#4630)
Browse files Browse the repository at this point in the history
* release: 5.4.0

* Disable cache

* Fix unit test
  • Loading branch information
stevenjoezhang authored Feb 21, 2021
1 parent 09334c0 commit b65a562
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Test
Expand All @@ -40,12 +34,6 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Coverage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo",
"version": "5.3.0",
"version": "5.4.0",
"description": "A fast, simple & powerful blog framework, powered by Node.js.",
"main": "lib/hexo",
"bin": {
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 @@ -1171,7 +1171,7 @@ describe('Post', () => {
engine: 'markdown'
});

data.content.trim().should.contains(`<pre><code class="sh">${escapeHTML('echo "Hi"')}</code></pre>`);
data.content.trim().should.contains(`<pre><code class="sh">${escapeHTML('echo "Hi"')}\n</code></pre>`);
data.content.trim().should.contains('<script src="//gist.github.com/gist_id.js"></script>');
data.content.trim().should.contains('<script src="//gist.github.com/gist_id_2.js"></script>');
});
Expand Down Expand Up @@ -1264,13 +1264,13 @@ describe('Post', () => {
});

// indented pullquote
data.content.trim().should.contains(`<pre><code>${escapeSwigTag('{% pullquote %}foo foo foo{% endpullquote %}')}</code></pre>`);
data.content.trim().should.contains(`<pre><code>${escapeSwigTag('{% pullquote %}foo foo foo{% endpullquote %}')}\n</code></pre>`);
data.content.trim().should.contains('<p>test001</p>');
// pullquote tag
data.content.trim().should.contains('<blockquote class="pullquote"><p>bar bar bar</p>\n</blockquote>');
data.content.trim().should.contains('<p>test002</p>');
// indented youtube tag
data.content.trim().should.contains(`<pre><code>${escapeSwigTag('{% youtube https://example.com/demo.mp4 %}')}</code></pre>`);
data.content.trim().should.contains(`<pre><code>${escapeSwigTag('{% youtube https://example.com/demo.mp4 %}')}\n</code></pre>`);
// youtube tag
data.content.trim().should.contains('<div class="video-container"><iframe src="https://www.youtube.com/embed/https://example.com/sample.mp4" frameborder="0" loading="lazy" allowfullscreen></iframe></div>');
});
Expand Down

0 comments on commit b65a562

Please sign in to comment.