Skip to content

Commit 73d35b9

Browse files
committed
make non-empty githubLink for tests to pass in all fixtures
'
1 parent dfa024f commit 73d35b9

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

fixture/tutorial.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handlers/auth/test/fixtures/db.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handlers/tutorial/test/fixture/article.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports.Article = [
1010
slug: "article-1",
1111
content: "Content 1",
1212
modified: new Date(2014, 0, 1),
13-
githubLink: '',
13+
githubLink: 'http://not.exists.com',
1414
isFolder: true,
1515
weight: 0
1616
},
@@ -20,7 +20,7 @@ exports.Article = [
2020
slug: "article-2",
2121
content: "Content 2",
2222
modified: new Date(2014, 0, 2),
23-
githubLink: '',
23+
githubLink: 'http://not.exists.com',
2424
isFolder: true,
2525
weight: 1
2626
},
@@ -32,7 +32,7 @@ exports.Article = [
3232
modified: new Date(2014, 0, 2),
3333
isFolder: false,
3434
weight: 0,
35-
githubLink: '',
35+
githubLink: 'http://not.exists.com',
3636
parent: ids[0]
3737
},
3838
{
@@ -43,7 +43,7 @@ exports.Article = [
4343
modified: new Date(2014, 0, 3),
4444
isFolder: false,
4545
weight: 1,
46-
githubLink: '',
46+
githubLink: 'http://not.exists.com',
4747
parent: ids[0]
4848
},
4949
{
@@ -53,7 +53,7 @@ exports.Article = [
5353
content: "Content 2.1",
5454
modified: new Date(2014, 0, 4),
5555
isFolder: false,
56-
githubLink: '',
56+
githubLink: 'http://not.exists.com',
5757
weight: 0,
5858
parent: ids[1]
5959
},
@@ -64,7 +64,7 @@ exports.Article = [
6464
content: "Content 2.2",
6565
modified: new Date(2014, 0, 5),
6666
isFolder: false,
67-
githubLink: '',
67+
githubLink: 'http://not.exists.com',
6868
weight: 1,
6969
parent: ids[1]
7070
}

handlers/tutorial/test/model/article.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Article', function() {
2222
slug: 'slug',
2323
content: "Content",
2424
isFolder: false,
25-
githubLink: '',
25+
githubLink: 'http://not.exists.com',
2626
weight: 0
2727
});
2828

handlers/tutorial/test/renderer/articleRenderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("ArticleRenderer", function() {
1515
const article = new Article({
1616
title: "Title",
1717
slug: "test",
18-
githubLink: '',
18+
githubLink: 'http://not.exists.com',
1919
content: "# Title\n\n## Title\n\nMy html *string*."
2020
});
2121
const renderer = new ArticleRenderer();
@@ -35,7 +35,7 @@ describe("ArticleRenderer", function() {
3535
weight: 0,
3636
isFolder: false,
3737
content: "# Title\n\n## Title\n\nMy html *string*.",
38-
githubLink: ''
38+
githubLink: 'http://not.exists.com'
3939
}).persist();
4040

4141
const article = new Article({
@@ -44,7 +44,7 @@ describe("ArticleRenderer", function() {
4444
weight: 0,
4545
isFolder: false,
4646
content: "# Title\n\n[](/test)",
47-
githubLink: ''
47+
githubLink: 'http://not.exists.com'
4848
});
4949

5050
const renderer = new ArticleRenderer();

modules/lib/dataUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function *loadModel(Model, data) {
117117
yield model.persist();
118118
} catch (e) {
119119
if (e.name == 'ValidationError') {
120-
log.error("loadModel persist validation error", e, e.errors);
120+
log.error("loadModel persist validation error", e, e.errors, model.toObject());
121121
}
122122
throw e;
123123
}

0 commit comments

Comments
 (0)