Home Reference Source Test Repository

Test

Description Identifier Count

embedURL should be set

-

options should be set

-

embed.startedDate should be a Date object

-

embed.finishedDate should be a Date object

-

embed.elapsedMs should be a number

-

should have a valid engine.engineOptions object

-

should contain a populated providerRegistry of URLEmbedProvider instances

-

EmbedEngine.providerRegistry should contain the new provider

-

should return markup for an embeddable url

-

should call EmbedEngine.errorMarkupNoMatchingProvider for an url without a provider

-

should return the same number of embeds as the original list

-

should contain a urlPatterns property

OEmbedProvider#constructor

should contain a providerURL property

OEmbedProvider#constructor

should match the provider url

URLEmbedProvider#isMatch

should fail to match a different url

URLEmbedProvider#isMatch

successful: should return the body markup

OEmbedProvider#getEmbed

filterData function should get called

URLEmbedProvider#filterData

should return an error object when it fails

OEmbedProvider#getEmbed

should call errorMarkup when it fails

URLEmbedProvider#errorMarkup

should call errorMarkup if the provider yields a non 200 response

URLEmbedProvider#errorMarkup

should call errorMarkup404 if the provider yields a 404 response and the provider supports the method

-

should return a valid API url with all options accounted for

-

should convert the escaped code point for "🚀" to the corresponding escaped surrogate pair

-

should contain a urlPatterns property

URLEmbedProvider#constructor

should match the provider url

URLEmbedProvider#isMatch

should fail to match a different url

URLEmbedProvider#isMatch

should return the stub markup

URLEmbedProvider#getEmbed

filterData function should get called

URLEmbedProvider#filterData

should return an error object when it fails

URLEmbedProvider#getEmbed

should call errorMarkup when it fails

URLEmbedProvider#errorMarkup