Skip to content

Commit 81186c1

Browse files
author
Warren Buckley
committed
Updated one test to help show Andy - mayu want to add more tests based on the different config set
1 parent a6c8409 commit 81186c1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Our.Umbraco.TagHelpers.Tests/InlineSvgTagHelperTests.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.Extensions.Options;
55
using Moq;
66
using NUnit.Framework;
7+
using Our.Umbraco.TagHelpers.Configuration;
78
using System;
89
using System.Collections.Generic;
910
using System.IO;
@@ -41,7 +42,18 @@ public void Setup()
4142
[Test]
4243
public void NoOutputIfNoMediaOrFileSet()
4344
{
44-
var tagHelper = new InlineSvgTagHelper(null, null, null, null, null);
45+
var settings = new OurUmbracoTagHelpersConfiguration()
46+
{
47+
OurSVG =
48+
{
49+
Cache = false,
50+
EnsureViewBox = false,
51+
CacheMinutes = 180
52+
}
53+
};
54+
IOptions<OurUmbracoTagHelpersConfiguration> tagHelperSettings = Options.Create(settings);
55+
56+
var tagHelper = new InlineSvgTagHelper(null, null, null, tagHelperSettings, null);
4557

4658
tagHelper.Process(_context, _output);
4759

0 commit comments

Comments
 (0)