Skip to content

Commit 7893608

Browse files
committed
version 0.1.0
1 parent b9e48e7 commit 7893608

File tree

10 files changed

+10
-14
lines changed

10 files changed

+10
-14
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,3 @@ npm run upgrade
5353
```bash
5454
npm run dev # runs API development server at http://localhost:3001
5555
```
56-
57-
## TODO
58-
- parser improving (supporting other parser, easy API)

bin/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const path = require('path');
66

7-
global.LIBERTY_VERSION = '0.0.1';
7+
global.LIBERTY_VERSION = '0.1.0';
88
process.chdir(path.join(__dirname, '..')); // root dir
99

1010
const models = require('../lib/models');

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "LibertyEngine",
55
"description": "API documentation of LibertyEngine.",
6-
"version": "1.0.0"
6+
"version": "0.1.0"
77
},
88
"host": "localhost:3001",
99
"basePath": "/",

docs/yui.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LibertyEngine",
33
"description": "LibertyEngine",
4-
"version": "0.0.1",
4+
"version": "0.1.0",
55
"url": "https://github.com/librewiki/liberty-engine/",
66
"options": {
77
"linkNatives": true,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "liberty-engine",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"engines": {
5-
"node": ">=8.2.1"
5+
"node": ">=8"
66
},
77
"private": true,
88
"scripts": {

tests/api/v1/discussion-topics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const models = require('../../../lib/models');
1414
let child;
1515
const host = 'http://localhost:6001';
1616

17-
describe('discussion-topics API', () => {
17+
describe.only('discussion-topics API', () => {
1818
before('run api server', async () => {
1919
const env = Object.create(process.env);
2020
env.NODE_ENV = 'test';
@@ -45,7 +45,7 @@ describe('discussion-topics API', () => {
4545
});
4646

4747

48-
describe.only('GET /discussion-topics', () => {
48+
describe('GET /discussion-topics', () => {
4949
it('should success (200) with empty array when no discussion exists', async () => {
5050
const res = await chai.request(host).get('/v1/discussion-topics').send();
5151
expect(res).to.have.status(200);

tests/models/1.User.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
process.env.NODE_ENV = 'test';
4-
global.LIBERTY_VERSION = '0.0.1';
54

65
const models = require('../../lib/models');
76

tests/models/3.Article.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
process.env.NODE_ENV = 'test';
4-
global.LIBERTY_VERSION = '0.0.1';
4+
55
const path = require('path');
66

77
const models = require('../../lib/models');

tests/parser/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
process.env.NODE_ENV = 'test';
4-
global.LIBERTY_VERSION = '0.0.1';
4+
55
const models = require('../../lib/models');
66
const chai = require('chai');
77

tests/routes/1.users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
process.env.NODE_ENV = 'test';
4-
global.LIBERTY_VERSION = '0.0.1';
4+
55
const models = require('../../lib/models');
66
const chai = require('chai');
77

0 commit comments

Comments
 (0)