Upgrade Storybook
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
8c966dfbd8
commit
502ea174ab
328 changed files with 10863 additions and 12432 deletions
|
@ -74,17 +74,16 @@ describe('version utilities', () => {
|
|||
});
|
||||
|
||||
describe('generateAlphaVersion', () => {
|
||||
beforeEach(function beforeEach() {
|
||||
beforeEach(function (this: Mocha.Context) {
|
||||
// This isn't a hook.
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
this.clock = useFakeTimers();
|
||||
});
|
||||
|
||||
afterEach(function afterEach() {
|
||||
afterEach(function (this: Mocha.Context) {
|
||||
this.clock.restore();
|
||||
});
|
||||
|
||||
it('uses the current date and provided shortSha', function test() {
|
||||
it('uses the current date and provided shortSha', function (this: Mocha.Context) {
|
||||
this.clock.setSystemTime(new Date('2021-07-23T01:22:55.692Z').getTime());
|
||||
|
||||
const currentVersion = '5.12.0-beta.1';
|
||||
|
@ -96,7 +95,7 @@ describe('version utilities', () => {
|
|||
assert.strictEqual(expected, actual);
|
||||
});
|
||||
|
||||
it('same production version is semver.gt', function test() {
|
||||
it('same production version is semver.gt', function (this: Mocha.Context) {
|
||||
const currentVersion = '5.12.0-beta.1';
|
||||
const shortSha = '07f0efc45';
|
||||
|
||||
|
@ -106,7 +105,7 @@ describe('version utilities', () => {
|
|||
assert.isTrue(semver.gt('5.12.0', actual));
|
||||
});
|
||||
|
||||
it('same beta version is semver.gt', function test() {
|
||||
it('same beta version is semver.gt', function (this: Mocha.Context) {
|
||||
const currentVersion = '5.12.0-beta.1';
|
||||
const shortSha = '07f0efc45';
|
||||
|
||||
|
@ -116,7 +115,7 @@ describe('version utilities', () => {
|
|||
assert.isTrue(semver.gt(currentVersion, actual));
|
||||
});
|
||||
|
||||
it('build earlier same day is semver.lt', function test() {
|
||||
it('build earlier same day is semver.lt', function (this: Mocha.Context) {
|
||||
const currentVersion = '5.12.0-beta.1';
|
||||
const shortSha = '07f0efc45';
|
||||
|
||||
|
@ -129,7 +128,7 @@ describe('version utilities', () => {
|
|||
assert.isTrue(semver.lt(actualEarlier, actualLater));
|
||||
});
|
||||
|
||||
it('build previous day is semver.lt', function test() {
|
||||
it('build previous day is semver.lt', function (this: Mocha.Context) {
|
||||
const currentVersion = '5.12.0-beta.1';
|
||||
const shortSha = '07f0efc45';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue