cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From audreyso <>
Subject [GitHub] cordova-lib pull request #510: Fixjasmine : CB:12018 - updating tests in cor...
Date Wed, 14 Dec 2016 20:18:48 GMT
Github user audreyso commented on a diff in the pull request:
    --- Diff: cordova-common/spec/CordovaCheck.spec.js ---
    @@ -30,11 +30,12 @@ describe('findProjectRoot method', function() {
             process.env.PWD = origPWD;
    +function removeDir(someDirectory) {
    +    shell.rm('-rf', someDirectory);
         it('should return false if it hits the home directory', function() {
             var somedir = path.join(home, 'somedir');
    -        this.after(function() {
    --- End diff --
    Here does this.after remove the somedir similarly to how we are using in for testing save/fetch?
In the beforeEach, I have ``` shell.rm('-rf', project); ``` to clear the previous temp project?
Maybe I should just use my function in a beforeEach?  But then how will the someDir get updated
if it changes from test to test? (if that makes sense)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message