-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sync changes from v2 to v2-develop (#156) [skip ci]
Co-authored-by: mguellsegarra <[email protected]>
- Loading branch information
1 parent
c553890
commit 50b5e6e
Showing
12 changed files
with
286 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@gisce/ooui", | ||
"version": "2.23.0-rc.1", | ||
"version": "2.24.0", | ||
"engines": { | ||
"node": "20.5.0" | ||
}, | ||
|
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,35 @@ | ||
import { describe, it, expect } from "vitest"; | ||
import Field from "../Field"; | ||
|
||
describe("Field", () => { | ||
describe("with the autoRefresh property", () => { | ||
it("should be false as default", () => { | ||
const props = {}; | ||
const field = new Field(props); | ||
expect(field.autoRefresh).toBe(false); | ||
}); | ||
it("should work with text", () => { | ||
const props = { | ||
autorefresh: "1", | ||
}; | ||
const field = new Field(props); | ||
expect(field.autoRefresh).toBe(true); | ||
}); | ||
describe("if autorefresh is not a valid boold", () => { | ||
it("should return false", () => { | ||
const props = { | ||
autorefresh: "abc", | ||
}; | ||
const field = new Field(props); | ||
expect(field.autoRefresh).toBe(false); | ||
}); | ||
}); | ||
it("should return true for readOnly if autoRefresh is set", () => { | ||
const props = { | ||
autorefresh: true, | ||
}; | ||
const field = new Field(props); | ||
expect(field.readOnly).toBe(true); | ||
}); | ||
}); | ||
}); |
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
Oops, something went wrong.