require:
'intern/chai!expect',
'intern!bdd','intern!tdd',
function:
bdd.describe('WE LoginView Controller', function() {
bdd.it('WE should not have an edited Todo on start', function() {
expect(scope.login_passwd1).to.have.length(6);
});
});
tdd.suite('Suite name', function() {
tdd.test('Test tdd', function() {
expect(scope.login_passwd1).to.have.length(6);
});
});
WE LoginView Controller
WE should not have an edited Todo on start
Suite name
Test tdd
本文讨论了如何使用bdd和tdd方法在WE登录控制器中验证初始状态下不存在已编辑的待办事项,确保用户体验的一致性和系统的健壮性。
696

被折叠的 条评论
为什么被折叠?



