测试schema.orgld+json内容
Test schema.org ld+json content
我有一个观点,内容如下:
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Organization",
"url" : "<%= company.url %>",
"contactPoint" : [{
"@type" : "ContactPoint",
"telephone" : "<%= company.phone_number %>",
"contactType" : "customer service"
}]
}
</script>
我卡在了 TDD 工作流程中。测试此类内容的最佳方法是什么?
你不能测试那样的东西。
我有一个观点,内容如下:
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Organization",
"url" : "<%= company.url %>",
"contactPoint" : [{
"@type" : "ContactPoint",
"telephone" : "<%= company.phone_number %>",
"contactType" : "customer service"
}]
}
</script>
我卡在了 TDD 工作流程中。测试此类内容的最佳方法是什么?
你不能测试那样的东西。