From 888f31a9bb5635f0d5d906f88a819a2e2657c895 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Tue, 17 Jan 2017 09:32:28 +0900
Subject: [PATCH] [WIP] test

---
 test/api.js | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/test/api.js b/test/api.js
index ac33dd9ce..cfa041d7f 100644
--- a/test/api.js
+++ b/test/api.js
@@ -7,7 +7,34 @@ process.env.NODE_ENV = 'test';
 
 const chai = require('chai');
 const chaiHttp = require('chai-http');
-const server = require('../built/server');
 const should = chai.should();
 
 chai.use(chaiHttp);
+
+const server = require('../built/api/server');
+
+describe('API', () => {
+	describe('posts/create', () => {
+		it('simple', done => {
+			const post = {
+				text: 'Hi'
+			};
+			chai.request(server)
+				.post('/posts/create')
+				.send(post)
+				.end((err, res) => {
+					res.should.have.status(200);
+					res.body.should.be.a('object');
+					done();
+				});
+		});
+
+		it('reply', () => {
+
+		});
+
+		it('repost', () => {
+
+		});
+	});
+});
\ No newline at end of file