Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing code. #21

Merged
merged 1 commit into from
Nov 3, 2015
Merged

Update testing code. #21

merged 1 commit into from
Nov 3, 2015

Conversation

cssmagic
Copy link
Owner

@cssmagic cssmagic commented Nov 2, 2015

在 PR #20 的基础上继续修改测试代码。

//compiledTemplate
var fn1 = _.template(templateCode1)
var fn2 = _.template(templateCode2)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为它们只在某个测试用例中用到,所以移进去,不需要暴露给其它代码。

expect(_cacheCompiledTemplate).to.deep.equal({})

var fn1 = _.template(templateCode1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fn1fn2赋值可以再晚点执行,用的时候再执行。不过没什么太大差异啦。

@Fishfaceeast
Copy link
Collaborator

LGTM

@zpbx zpbx merged commit 2d33599 into master Nov 3, 2015
@zpbx zpbx deleted the test branch November 3, 2015 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants