Skip to content

Commit

Permalink
Fix jscs failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kflu committed Jan 9, 2017
1 parent e075c78 commit 91f620b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/scripts/helpers/open_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ describe('open_graph', function() {
it('images - resolve relative path when site is hosted in subdirectory', function() {
var urlFn = require('url');
var config = hexo.config;
config.url = urlFn.resolve(config.url, "blog");
config.root = "/blog/";
var postUrl = urlFn.resolve(config.url, "/foo/bar/index.html");
config.url = urlFn.resolve(config.url, 'blog');
config.root = 'blog';
var postUrl = urlFn.resolve(config.url, '/foo/bar/index.html');

var result = openGraph.call({
page: {},
Expand All @@ -231,7 +231,7 @@ describe('open_graph', function() {
url: postUrl
}, {images: 'test.jpg'});

result.should.contain(meta({property: 'og:image', content: urlFn.resolve(config.url, "/foo/bar/test.jpg")}));
result.should.contain(meta({property: 'og:image', content: urlFn.resolve(config.url, '/foo/bar/test.jpg')}));
});

it('site_name - options', function() {
Expand Down

0 comments on commit 91f620b

Please sign in to comment.