test: add draft workflow coverage and sqlite migration helpers

This commit is contained in:
cesnimda
2026-03-22 18:59:05 +01:00
parent 87c9a11edc
commit 7f4068518d
6 changed files with 191 additions and 6 deletions
@@ -0,0 +1,25 @@
using System.Text;
using System.Text.Json;
using Microsoft.Data.Sqlite;
using Xunit;
namespace JobTrackerApi.Tests;
public sealed class SqliteMigrationHelperTests
{
[Fact]
public void Export_payload_shape_can_be_serialized()
{
var payload = new
{
users = new[] { new { Id = "u1", Email = "u@example.com" } },
companies = new[] { new { Id = 1, Name = "Acme" } },
jobs = new[] { new { Id = 1, JobTitle = "Backend Dev" } }
};
var json = JsonSerializer.Serialize(payload);
Assert.Contains("users", json);
Assert.Contains("companies", json);
Assert.Contains("jobs", json);
}
}