Skip to content

Commit

Permalink
ci: try to fix tests on 22
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 5, 2024
1 parent 8410311 commit 3dd1fa8
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 147 deletions.
2 changes: 1 addition & 1 deletion handlers/RSS.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import RssFeedEmitter from 'rss-feed-emitter';

import feeds from '../resources/rssFeeds.json' assert { type: 'json' };
import feeds from '../resources/rssFeeds.json' with { type: 'json' };
import { logger } from '../utilities/index.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion handlers/Twitter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Twitter from 'twitter';

import toWatch from '../resources/tweeters.json' assert { type: 'json' };
import toWatch from '../resources/tweeters.json' with { type: 'json' };
import { logger } from '../utilities/index.js';
import { twiClientInfo, TWITTER_TIMEOUT } from '../utilities/env.js';

Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ export default class WorldstateEmitter extends EventEmitter {
return this.#worldstate?.get(language);
}

get debug() {
return {
rss: this.getRss(),
worldstate: this.#worldstate?.get(),
twitter: this.#twitter?.clientInfoValid ? this.#twitter.getData() : undefined,
};
}

/**
* Get Twitter data
* @returns {Promise} promised twitter data
Expand Down
Loading

0 comments on commit 3dd1fa8

Please sign in to comment.