2018-12-15 22:06:29 +00:00
|
|
|
/* eslint-disable flowtype/require-valid-file-annotation */
|
2020-06-20 20:59:15 +00:00
|
|
|
import Airtable from "./Airtable";
|
2018-12-15 22:06:29 +00:00
|
|
|
|
2020-06-20 20:59:15 +00:00
|
|
|
describe("Airtable", () => {
|
2018-12-15 22:06:29 +00:00
|
|
|
const match = Airtable.ENABLED[0];
|
2020-06-20 20:59:15 +00:00
|
|
|
test("to be enabled on share link", () => {
|
|
|
|
expect("https://airtable.com/shrEoQs3erLnppMie".match(match)).toBeTruthy();
|
2018-12-15 22:06:29 +00:00
|
|
|
});
|
|
|
|
|
2020-06-20 20:59:15 +00:00
|
|
|
test("to be enabled on embed link", () => {
|
2018-12-15 22:06:29 +00:00
|
|
|
expect(
|
2020-06-20 20:59:15 +00:00
|
|
|
"https://airtable.com/embed/shrEoQs3erLnppMie".match(match)
|
2018-12-15 22:06:29 +00:00
|
|
|
).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
2020-06-20 20:59:15 +00:00
|
|
|
test("to not be enabled elsewhere", () => {
|
|
|
|
expect("https://airtable.com".match(match)).toBe(null);
|
|
|
|
expect("https://airtable.com/features".match(match)).toBe(null);
|
|
|
|
expect("https://airtable.com/pricing".match(match)).toBe(null);
|
2018-12-15 22:06:29 +00:00
|
|
|
});
|
|
|
|
});
|