Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jun 26, 2024
1 parent 2070eca commit dfbd5ad
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/account/test/fuel-core-schema.test.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
import { safeExec } from '@fuel-ts/errors/test-utils';
import { execSync } from 'child_process';
import type { BinaryToTextEncoding } from 'crypto';
import { createHash } from 'crypto';
import { readFile } from 'fs/promises';

const FUEL_CORE_SCHEMA_FILE_PATH = 'packages/account/src/providers/fuel-core-schema.graphql';
const FUEL_CORE_SCHEMA_SYNC_COMMAND = 'pnpm --filter @fuel-ts/account build:schema';

function generateChecksum(
utf8: Buffer,
algorithm: string = 'md5',
encoding: BinaryToTextEncoding = 'hex'
) {
return createHash(algorithm || 'md5')
.update(utf8.toString(), 'utf8')
.digest(encoding || 'hex');
}

describe('fuel-core-schema.graphql', () => {
it('should not change on schema build', async () => {
const preSyncSchema = await readFile(FUEL_CORE_SCHEMA_FILE_PATH);
Expand Down

0 comments on commit dfbd5ad

Please sign in to comment.