我先将 ci 返回的结果存到数据库 MongoDB 里,再由前端页面读取数据库里的结果并显示在页面上,但问题是,页面显示的结果并没有换行。
像这样:
而我的预期效果应该是这样显示结果:
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.9.5
npm info lifecycle js-quiz@1.0.0~pretest: js-quiz@1.0.0
npm info lifecycle js-quiz@1.0.0~test: js-quiz@1.0.0
> js-quiz@1.0.0 test /var
> jasmine
Started
F
Failures:
1) count-string-in-collection 计数数组字符串
Message:
Expected undefined to equal [ 'a-2', 'b-2', 'c-1', 'd-1' ].
Stack:
Error: Expected undefined to equal [ 'a-2', 'b-2', 'c-1', 'd-1' ].
at Object. (/var/spec/count-string-spec.js: