blob: 39a6e545815118c29269a806a013eb41fb9704ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using FluentAssertions;
using System.Net.Mime;
using System.Threading.Tasks;
using Timeline.Tests.Helpers;
using Xunit;
namespace Timeline.Tests.IntegratedTests
{
public class FrontEndTest : IntegratedTestBase
{
[Fact]
public async Task Index()
{
using var client = await CreateDefaultClient(false);
var res = await client.GetAsync("index.html");
res.Should().HaveStatusCode(200);
res.Content.Headers.ContentType.MediaType.Should().Be(MediaTypeNames.Text.Html);
}
[Fact]
public async Task Fallback()
{
using var client = await CreateDefaultClient(false);
var res = await client.GetAsync("aaaaaaaaaaaaaaa");
res.Should().HaveStatusCode(200);
res.Content.Headers.ContentType.MediaType.Should().Be(MediaTypeNames.Text.Html);
}
}
}
|