• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

electron based twitter client


Commit MetaInfo

修订版05761c18aa3054884a4e8f64c132b3e2b1939952 (tree)
时间2016-02-08 18:06:11
作者hylom <hylom@user...>
Commiterhylom

Log Message

add test/retrive_sample_data.js for test

更改概述

差异

--- /dev/null
+++ b/test/retrive_sample_data.js
@@ -0,0 +1,16 @@
1+
2+var util = require('util');
3+var models = require('../models');
4+
5+models.getHomeTimeline(function (err, tweets, resp) {
6+ if (err) throw err;
7+ if (util.isArray(tweets)) {
8+ tweets.forEach(putTweet);
9+ } else {
10+ putTweet(tweets);
11+ }
12+});
13+
14+function putTweet(tw) {
15+ console.log(tw);
16+}
\ No newline at end of file