-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from angrykoala/dev
Wendigo 1.3.0
- Loading branch information
Showing
14 changed files
with
356 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
"use strict"; | ||
|
||
const assert = require('assert'); | ||
const Wendigo = require('../../lib/wendigo'); | ||
const configUrls = require('../config.json').urls; | ||
|
||
|
||
// Skipped until #204 fixed | ||
describe.skip("Timezone", function() { | ||
this.timeout(5000); | ||
let browser; | ||
|
||
function getTimezone() { | ||
return browser.evaluate(() => { | ||
return Intl.DateTimeFormat().resolvedOptions().timeZone; // eslint-disable-line new-cap | ||
}); | ||
} | ||
|
||
after(async() => { | ||
await browser.close(); | ||
}); | ||
|
||
it("Change Timezone To UTC", async() => { | ||
browser = await Wendigo.createBrowser({ | ||
timezone: "UTC" | ||
}); | ||
|
||
await browser.open(configUrls.simple); | ||
const tz = await getTimezone(); | ||
assert.strictEqual(tz, "UTC"); | ||
}); | ||
|
||
it("Change Timezone To Japan", async() => { | ||
browser = await Wendigo.createBrowser({ | ||
timezone: "Japan" | ||
}); | ||
await browser.open(configUrls.simple, { | ||
timezone: "Japan" | ||
}); | ||
const tz = await getTimezone(); | ||
assert.strictEqual(tz, "Japan"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.