Skip to content

Commit

Permalink
move the type to the variable itself
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jun 26, 2024
1 parent 398615a commit 60d2df6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/Core.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { execFileSync } from 'child_process';
import * as os from 'os';
import * as chai from 'chai';

const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

// This test is used only in Node.js
import IM from 'magickwand.js/native';
Expand Down
2 changes: 1 addition & 1 deletion test/Main.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

import ImageMagick from 'magickwand.js';

Expand Down
2 changes: 1 addition & 1 deletion test/STL.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

// This test is used only in Node.js
import { Magick, MagickCore } from 'magickwand.js/native';
Expand Down
2 changes: 1 addition & 1 deletion test/Security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

// This test is used only in Node.js
import { Magick, MagickCore } from 'magickwand.js/native';
Expand Down
2 changes: 1 addition & 1 deletion test/integration/browser-react-ts/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import chaiAsPromised from 'chai-as-promised';
import IM from 'magickwand.js';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

const root = ReactDOM.createRoot(document.createElement('div'));

Expand Down
2 changes: 1 addition & 1 deletion test/integration/browser-webpack-ts-cjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

/**
* TS transpiled to CJS cannot use the automatic import (it requires ES6).
Expand Down
2 changes: 1 addition & 1 deletion test/integration/browser-webpack-ts-esm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

import IM from 'magickwand.js';

Expand Down
2 changes: 1 addition & 1 deletion test/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';

chai.use(chaiAsPromised);
const assert = chai.assert as Chai.AssertStatic;
const assert: Chai.AssertStatic = chai.assert;

import TestImage from './Image.shared';
import TestBlob from './Blob.shared';
Expand Down

0 comments on commit 60d2df6

Please sign in to comment.