Skip to content

Commit

Permalink
Appease the lint gods
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Mar 2, 2022
1 parent 8651035 commit 4dc45cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/gem/__tests__/gem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeHooks } from "@auto-it/core/dist/utils/make-hooks";
import { dummyLog } from "@auto-it/core/dist/utils/logger";
import { execSync } from "child_process";
import { when } from 'jest-when';
import fs from 'fs/promises'
import fs from 'fs'

import Gem from "../src";
import endent from "endent";
Expand Down Expand Up @@ -274,12 +274,12 @@ describe("Gem Plugin", () => {
plugin.apply({ hooks, logger } as any);
await hooks.version.promise({ bump: SEMVER.minor });

expect(await fs.readFile('gem.gemspec', { encoding: 'utf-8' })).toBe(endent`
expect(fs.readFileSync('gem.gemspec', { encoding: 'utf-8' })).toBe(endent`
Gem::Specification.new do |spec|
spec.version = "0.2.0"
end
`);
expect(await fs.readFile('Gemfile.lock', { encoding: 'utf-8' })).toBe(endent`
expect(fs.readFileSync('Gemfile.lock', { encoding: 'utf-8' })).toBe(endent`
PATH
remote: .
specs:
Expand Down

0 comments on commit 4dc45cd

Please sign in to comment.