Skip to content

Commit

Permalink
ON-45075 # Make slug unique
Browse files Browse the repository at this point in the history
  • Loading branch information
kizaonline committed Nov 22, 2024
1 parent 7fd860c commit fa2a5dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OneBlink.SDK.Tests/FormsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ public async void can_crud_form()
DateTime endDate = DateTime.Today.AddDays(10);
Form newForm = new Form();
newForm.name = "Unit test";
newForm.slug = "unit-test";
string slug = "unit-test" + DateTime.Now;
newForm.slug = slug;
newForm.description = "Created via unit test";
newForm.organisationId = organisationId;
newForm.isAuthenticated = false;
Expand Down Expand Up @@ -283,7 +284,7 @@ public async void can_crud_form()
Assert.NotNull(savedForm);
Form retrievedForm = await formsClient.Get(savedForm.id, true);
Assert.NotNull(retrievedForm);
Assert.Equal(newForm.slug, retrievedForm.slug);
Assert.Equal(slug, retrievedForm.slug);
Assert.Equal(tags, retrievedForm.tags);
Assert.Equal(newForm.postSubmissionReceipt.html, retrievedForm.postSubmissionReceipt.html);
// Need to convert these to UTC time as that is what comes from api, and these dates are in local time
Expand Down

0 comments on commit fa2a5dd

Please sign in to comment.