From afb052c39cd5e9fc238d5ea0403a6b2323e4a1e6 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 21 Oct 2020 10:36:23 +0800 Subject: [PATCH] Optimize video tag --- scripts/tags/video.js | 2 +- test/tags/video.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/tags/video.js b/scripts/tags/video.js index 9f4e70c..2c326e5 100644 --- a/scripts/tags/video.js +++ b/scripts/tags/video.js @@ -5,5 +5,5 @@ 'use strict'; module.exports = function(args) { - return ``; + return ``; }; diff --git a/test/tags/video.js b/test/tags/video.js index 4e56cdb..fba2faf 100644 --- a/test/tags/video.js +++ b/test/tags/video.js @@ -6,6 +6,10 @@ describe('video', () => { const postVideo = require('../../scripts/tags/video'); it('default', () => { - postVideo(['https://example.com/sample.mp4']).should.eql(''); + postVideo(['https://example.com/sample.mp4']).should.eql(''); + }); + + it('poster', () => { + postVideo(['https://example.com/sample.mp4', 'https://example.com/sample.jpg']).should.eql(''); }); });