We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6edca7 commit 2c97903Copy full SHA for 2c97903
test/app/controller/rss.test.js
@@ -0,0 +1,19 @@
1
+'use strict';
2
+
3
+const { app, assert } = require('egg-mock/bootstrap');
4
5
+describe('test/app/controller/rss.test.js', () => {
6
+ it('rss should ok', async () => {
7
+ const { config } = app;
8
+ config.debug = false;
9
+ const result1 = await app.httpRequest().get('/rss');
10
+ assert(result1.text.includes('CNode:Node.js专业中文社区'));
11
12
+ const result2 = await app.httpRequest().get('/rss');
13
+ assert(result2.text.includes('CNode:Node.js专业中文社区'));
14
15
+ config.rss = null;
16
+ await app.httpRequest().get('/rss').expect(404);
17
+ config.debug = true;
18
+ });
19
+});
0 commit comments