53 lines
1.5 KiB
TypeScript
53 lines
1.5 KiB
TypeScript
import config from './config';
|
|
|
|
describe('wakatime config', () => {
|
|
it('snapshot of config', () => {
|
|
expect(config).toMatchInlineSnapshot(`
|
|
{
|
|
"alert": {
|
|
"failure": {
|
|
"text": "There was an error while saving the options!",
|
|
"type": "danger",
|
|
},
|
|
"success": {
|
|
"text": "Options have been saved!",
|
|
"type": "success",
|
|
},
|
|
},
|
|
"apiKey": "",
|
|
"colors": {
|
|
"allGood": "",
|
|
"lightTheme": "white",
|
|
"notLogging": "gray",
|
|
"notSignedIn": "red",
|
|
},
|
|
"currentUserApiUrl": "https://wakatime.com/api/v1/users/current",
|
|
"detectionIntervalInSeconds": 60,
|
|
"heartbeatApiUrl": "https://wakatime.com/api/v1/users/current/heartbeats",
|
|
"loggingEnabled": true,
|
|
"loggingStyle": "blacklist",
|
|
"loggingType": "domain",
|
|
"logoutUserUrl": "https://wakatime.com/logout",
|
|
"name": "WakaTime",
|
|
"states": [
|
|
"allGood",
|
|
"notLogging",
|
|
"notSignedIn",
|
|
"blacklisted",
|
|
"whitelisted",
|
|
],
|
|
"summariesApiUrl": "https://wakatime.com/api/v1/users/current/summaries",
|
|
"theme": "light",
|
|
"tooltips": {
|
|
"allGood": "",
|
|
"blacklisted": "This URL is blacklisted",
|
|
"notLogging": "Not logging",
|
|
"notSignedIn": "Not signed In",
|
|
"whitelisted": "This URL is not on your whitelist",
|
|
},
|
|
"version": "test-version",
|
|
}
|
|
`);
|
|
});
|
|
});
|