这里有一个标记库:https ://github.com/Tealium/integration-angularjs/blob/master/tealium_angular.js 。
我们将它集成到我们的应用程序中。在应用程序初始化期间,我们需要为此库提供一些配置。这样做是这样的:
我们的 app.js:
angular.module('appname', [ 'TealiumHelper' ])
.config(function (tealiumProvider) {
tealiumProvider.setConfig({
account: 'accountxx',
profile: 'profilexx',
environment: 'dev'
});
})
有一个类似这样的业力测试:
(function () {
'use strict';
describe('controllertest', function () {
beforeEach(module('appname','TealiumHelper'));
it('bla', function () {
//test code
}
}
}
当我开始测试时,我收到来自tealium_angular.js的以下错误:
“未设置帐户或个人资料值。请先配置 Tealium”
如何在我的业力测试中设置这些配置值?