sherlock-segment
Version:
Sherlock plugin for Segment integrations
41 lines (35 loc) • 503 B
JavaScript
/**
* Unit tests.
*/
exports.scripts = [
'.customer.io'
];
exports.settings = [
{
ctx: {
document: {
getElementById: function () {
return {
getAttribute: function () {
return 'a';
}
};
}
}
},
expected: {
siteId: 'a'
}
}
];
/**
* Integration tests.
*/
exports.integration = [
{
fixture: 'customerio/index.html',
expected: {
siteId: 'YOUR SITE ID HERE'
}
}
];