Skip to content

Commit

Permalink
refactor: e2e multi env (#10195)
Browse files Browse the repository at this point in the history
* test: update e2e multi env test cases

* test: update e2e multi env test cases
  • Loading branch information
xiaolang124 authored Oct 23, 2023
1 parent e19913f commit e5db52f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/tests/src/e2e/multienv/TestRemoteHappyPath.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ describe("Multi Env Happy Path for Azure", function () {
timeout: 0,
});
const envs = result.stdout.trim().split(/\r?\n/).sort();
chai.expect(envs).to.deep.equal(["dev", "e2e"]);
expect(envs).to.include("dev");
expect(envs).to.include("e2e");
chai.expect(result.stderr).to.be.empty;
console.log(
`[Successfully] env list, stdout: '${result.stdout}', stderr: '${result.stderr}'`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ describe("Multi Env Happy Path for SPFx", function () {
timeout: 0,
});
const envs = result.stdout.trim().split(/\r?\n/).sort();
expect(envs).to.deep.equal(["dev", "e2e"]);
expect(envs).to.include("dev");
expect(envs).to.include("e2e");
expect(result.stderr).to.be.empty;
console.log(
`[Successfully] env list, stdout: '${result.stdout}', stderr: '${result.stderr}'`
Expand Down

0 comments on commit e5db52f

Please sign in to comment.