feat: remove outdated test case
This commit is contained in:
parent
9032153c7d
commit
673a2259ce
|
|
@ -9,6 +9,10 @@ const queryString = require('query-string');
|
|||
let tokenIndex = 0;
|
||||
|
||||
const twitterGot = async (url, params) => {
|
||||
if (!config.twitter.oauthTokens.length || !config.twitter.oauthTokenSecrets.length || config.twitter.oauthTokens.length !== config.twitter.oauthTokenSecrets.length) {
|
||||
throw Error('Invalid twitter oauth tokens');
|
||||
}
|
||||
|
||||
const oauth = OAuth({
|
||||
consumer: {
|
||||
key: consumerKey,
|
||||
|
|
|
|||
|
|
@ -17,20 +17,6 @@ describe('config', () => {
|
|||
delete process.env.BILIBILI_COOKIE_34;
|
||||
});
|
||||
|
||||
it('twitter token', () => {
|
||||
process.env.TWITTER_TOKEN_12 = 'token1';
|
||||
process.env.TWITTER_TOKEN_34 = 'token2';
|
||||
|
||||
const config = require('../lib/config').value;
|
||||
expect(config.twitter.tokens).toMatchObject({
|
||||
12: 'token1',
|
||||
34: 'token2',
|
||||
});
|
||||
|
||||
delete process.env.TWITTER_TOKEN_12;
|
||||
delete process.env.TWITTER_TOKEN_34;
|
||||
});
|
||||
|
||||
it('email config', () => {
|
||||
process.env['EMAIL_CONFIG_xx.qq.com'] = 'token1';
|
||||
process.env['EMAIL_CONFIG_oo.qq.com'] = 'token2';
|
||||
|
|
|
|||
Loading…
Reference in New Issue