Skip to content

Commit

Permalink
update git contract tests to test project restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Sep 21, 2023
1 parent 69aa1ed commit 61d0f8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/ARCtrl/ARCtrl.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<ItemGroup>
<None Include="../../build/logo.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<Content Include="*.fsproj; **\*.fs; **\*.fsi" PackagePath="fable\" />
</ItemGroup>
<PropertyGroup>
Expand Down
9 changes: 4 additions & 5 deletions tests/ARCtrl/ARCtrl.Contracts.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

open TestingUtils

open TestingUtils
open ARCtrl
open ARCtrl.Contract
open FsSpreadsheet
Expand Down Expand Up @@ -37,7 +36,7 @@ let tests_gitContracts = testList "gitContracts" [
let cli = dto.AsCLITool()
Expect.equal cli.Name "git" "Should be git"
Expect.equal cli.Arguments.Length 3 "Should have two arguments"
mySequenceEqual cli.Arguments [|"init";"-b";"main"|] "Should be init"
Expect.sequenceEqual cli.Arguments [|"init";"-b";"main"|] "Should be init"

testCase "init_Branch" <| fun _ ->
let arc = ARC()
Expand All @@ -46,7 +45,7 @@ let tests_gitContracts = testList "gitContracts" [
Expect.equal contracts.Length 1 "Should be one contract"
let dto = contracts.[0].DTO.Value
let cli = dto.AsCLITool()
mySequenceEqual cli.Arguments [|"init";"-b";branchName|] "Should have new branchname"
Expect.sequenceEqual cli.Arguments [|"init";"-b";branchName|] "Should have new branchname"

testCase "init_remoteRepository" <| fun _ ->
let arc = ARC()
Expand All @@ -55,7 +54,7 @@ let tests_gitContracts = testList "gitContracts" [
Expect.equal contracts.Length 2 "Should be two contracts"
let dto = contracts.[1].DTO.Value
let cli = dto.AsCLITool()
mySequenceEqual cli.Arguments [|"remote";"add";"origin";remote|] "Should correctly set new remote"
Expect.sequenceEqual cli.Arguments [|"remote";"add";"origin";remote|] "Should correctly set new remote"

testCase "init_GitIgnore" <| fun _ ->
let arc = ARC()
Expand All @@ -75,7 +74,7 @@ let tests_gitContracts = testList "gitContracts" [
let contract = ARC.getCloneContract(remoteURL,merge = true,branch = branch,token = (user,token),nolfs = true)
let dto = contract.DTO.Value
let cli = dto.AsCLITool()
mySequenceEqual cli.Arguments [|"clone";noLFSConfig;"-b";branch;tokenFormattedURL;"."|] "some option was wrong"
Expect.sequenceEqual cli.Arguments [|"clone";noLFSConfig;"-b";branch;tokenFormattedURL;"."|] "some option was wrong"
]


Expand Down

0 comments on commit 61d0f8e

Please sign in to comment.