Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Oct 13, 2022
1 parent c9b158c commit 6f4a274
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions npm_and_yarn/spec/dependabot/npm_and_yarn/file_fetcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,18 @@
it "pulls files from lfs after cloning" do
# Calling #files triggers the clone
expect(file_fetcher_instance.files.map(&:name)).to contain_exactly("package.json", "yarn.lock", ".yarnrc.yml")
expect(File.read(
File.join(repo_contents_path, ".yarn", "releases", "yarn-3.2.4.cjs")
)).to start_with("#!/usr/bin/env node")
expect(
File.read(
File.join(repo_contents_path, ".yarn", "releases", "yarn-3.2.4.cjs")
)
).to start_with("#!/usr/bin/env node")

# LFS files not needed by dependabot are not pulled
expect(File.read(
File.join(repo_contents_path, ".pnp.cjs")
)).to start_with("version https://git-lfs.github.com/spec/v1")
expect(
File.read(
File.join(repo_contents_path, ".pnp.cjs")
)
).to start_with("version https://git-lfs.github.com/spec/v1")
end
end

Expand Down

0 comments on commit 6f4a274

Please sign in to comment.