Skip to content

Commit

Permalink
FileConventions: add another failing test
Browse files Browse the repository at this point in the history
Add failing test for DetectUnpinnedNpmPackageInstallVersions
function.
  • Loading branch information
tehraninasab committed Jul 6, 2023
1 parent 5bfc801 commit 97ccbf2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on: [push, pull_request]

jobs:
file-conventions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install two npm packages, one with version and the other one without version
run: sudo npm install --save-dev @prettier/plugin-xml [email protected]
16 changes: 16 additions & 0 deletions src/FileConventions.Test/FileConventions.Test.fs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,22 @@ let DetectUnpinnedNpmPackageInstallVersions3() =
)


[<Test>]
let DetectUnpinnedNpmPackageInstallVersions4() =
let fileInfo =
(FileInfo(
Path.Combine(
dummyFilesDirectory.FullName,
"DummyCIWithUnpinnedNpmPackageInstallVersion3.yml"
)
))

Assert.That(
DetectUnpinnedNpmPackageInstallVersions fileInfo,
Is.EqualTo true
)


[<Test>]
let DetectAsteriskInPackageReferenceItems1() =
let fileInfo =
Expand Down

0 comments on commit 97ccbf2

Please sign in to comment.