Skip to content

Commit

Permalink
Remove ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
smyrick committed Aug 19, 2022
1 parent 7bc65a7 commit e383f50
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ describe('RESTDataSource', () => {

describe('http cache', () => {
it('allows setting cache options for each request', async () => {
const dataSource = new (class extends RESTDataSource {
const dataSource = new class extends RESTDataSource {
override baseURL = 'https://api.example.com';
override requestCacheEnabled = false;

Expand All @@ -815,13 +815,12 @@ describe('RESTDataSource', () => {
}

// Set a long TTL for every request
// @ts-ignore
override cacheOptionsFor(_, __): CacheOptions | undefined {
override cacheOptionsFor(): CacheOptions | undefined {
return {
ttl: 1000000,
};
}
})();
}();

dataSource.httpCache = httpCache;

Expand All @@ -836,7 +835,7 @@ describe('RESTDataSource', () => {
});

it('allows setting a short TTL for the cache', async () => {
const dataSource = new (class extends RESTDataSource {
const dataSource = new class extends RESTDataSource {
override baseURL = 'https://api.example.com';
override requestCacheEnabled = false;

Expand All @@ -845,13 +844,12 @@ describe('RESTDataSource', () => {
}

// Set a short TTL for every request
// @ts-ignore
override cacheOptionsFor(_, __): CacheOptions | undefined {
override cacheOptionsFor(): CacheOptions | undefined {
return {
ttl: 1,
};
}
})();
}();

dataSource.httpCache = httpCache;

Expand Down

0 comments on commit e383f50

Please sign in to comment.