feat: remove outdated test case

This commit is contained in:
DIYgod 2023-11-29 21:57:13 +08:00
parent 9032153c7d
commit 673a2259ce
No known key found for this signature in database
2 changed files with 4 additions and 14 deletions

View File

@ -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,

View File

@ -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';