aboutsummaryrefslogtreecommitdiff
path: root/test/shared/property-defs.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-05 08:03:29 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-06 22:17:18 +0900
commita0882bbceb7ed71d56bf8557620449fbc3f19749 (patch)
treef2087d44f21dd68fc3584f62cfb9b62ae58bab2b /test/shared/property-defs.test.js
parentd01db82c0dca352de2d7644c383d388fc3ec0366 (diff)
Declare setting types
Diffstat (limited to 'test/shared/property-defs.test.js')
-rw-r--r--test/shared/property-defs.test.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/shared/property-defs.test.js b/test/shared/property-defs.test.js
new file mode 100644
index 0000000..37903d8
--- /dev/null
+++ b/test/shared/property-defs.test.js
@@ -0,0 +1,18 @@
+import * as settings from 'shared/settings';
+
+describe('properties', () => {
+ describe('Def class', () => {
+ it('returns property definitions', () => {
+ let def = new proerties.Def(
+ 'smoothscroll',
+ 'smooth scroll',
+ false);
+
+ expect(def.name).to.equal('smoothscroll');
+ expect(def.describe).to.equal('smooth scroll');
+ expect(def.defaultValue).to.equal(false);
+ expect(def.type).to.equal('boolean');
+ });
+ });
+});
+