|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Extensions.Options; |
|
|
|
using Shouldly; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
@ -16,7 +17,10 @@ namespace Volo.Abp.AspNetCore.Mvc.ProxyScripting |
|
|
|
[Fact] |
|
|
|
public async Task GetAllWithMinify() |
|
|
|
{ |
|
|
|
GetRequiredService<IOptions<AbpAspNetCoreMvcOptions>>().Value.MinifyGeneratedScript = false; |
|
|
|
var script = await GetResponseAsStringAsync("/Abp/ServiceProxyScript"); |
|
|
|
|
|
|
|
GetRequiredService<IOptions<AbpAspNetCoreMvcOptions>>().Value.MinifyGeneratedScript = true; |
|
|
|
var minifyScript = await GetResponseAsStringAsync("/Abp/ServiceProxyScript?minify=true"); |
|
|
|
|
|
|
|
script.Length.ShouldBeGreaterThan(0); |
|
|
|
|