Skip to content

Commit

Permalink
fix(issues/89): Fixed production build, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Lebaudy committed Jul 7, 2022
1 parent be4dd26 commit 4f19de8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions rollup/config.lib.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Vendor
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import { ModuleFormat, RollupOptions } from 'rollup';
import copy from 'rollup-plugin-copy';
import commonjs from 'rollup-plugin-commonjs';
import json from '@rollup/plugin-json';
import copy from 'rollup-plugin-copy';
import filesize from 'rollup-plugin-filesize';
import resolve from '@rollup/plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { BLOCKLISTED_GPUS } from './internal/blocklistedGPUS';
import { cleanRenderer } from './internal/cleanRenderer';
import { deobfuscateRenderer } from './internal/deobfuscateRenderer';
import { deviceInfo } from './internal/deviceInfo';
import { getLevenshteinDistance } from './internal/getLevenshteinDistance';
import { OutdatedBenchmarksError } from './internal/error';
import { getGPUVersion } from './internal/getGPUVersion';
import { getLevenshteinDistance } from './internal/getLevenshteinDistance';
import { getWebGLContext } from './internal/getWebGLContext';
import { isSSR } from './internal/ssr';
import { isDefined } from './internal/util';
import { OutdatedBenchmarksError } from './internal/error';

// Types
export interface GetGPUTier {
Expand Down Expand Up @@ -141,7 +141,7 @@ export const getGPUTier = async ({
}
};

const queryBenchmarks = async (renderer: string) => {
async function queryBenchmarks(renderer: string) {
const type = getGpuType(renderer);
if (!type) {
return;
Expand Down
4 changes: 0 additions & 4 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ for (const { input, expected } of [
isIpad: true,
isMobile: true,
renderer: 'Apple A12X GPU',
screen: {
height: 1668,
width: 2224,
},
},
},
{
Expand Down

0 comments on commit 4f19de8

Please sign in to comment.