Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed May 20, 2020
1 parent 9e8e329 commit bcb0c45
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
71 changes: 71 additions & 0 deletions test/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Index Should export member properly 1`] = `
Object {
"PartialValidator": Symbol(tc:partial),
"RequiredValidator": Symbol(tc:required),
"Result": Object {
"create": create,
"error": error,
},
"convert": convert,
"createValidator": createValidator,
"default": createConverter,
"partial": partial,
"val": Object {
"UUID": UUID,
"after": after,
"alpha": alpha,
"alphanumeric": alphanumeric,
"ascii": ascii,
"base64": base64,
"before": before,
"byteLength": byteLength,
"creditCard": creditCard,
"currency": currency,
"dataURI": dataURI,
"decimal": decimal,
"divisibleBy": divisibleBy,
"email": email,
"float": float,
"fqdn": fqdn,
"fullWidth": fullWidth,
"halfWidth": halfWidth,
"hash": hash,
"hexColor": hexColor,
"hexadecimal": hexadecimal,
"int": int,
"ip": ip,
"isbn": isbn,
"isin": isin,
"iso31661Alpha2": iso31661Alpha2,
"iso8601": iso8601,
"isrc": isrc,
"issn": issn,
"json": json,
"latLong": latLong,
"length": length,
"lowerCase": lowerCase,
"macAddress": macAddress,
"matches": matches,
"md5": md5,
"mimeType": mimeType,
"mobilePhone": mobilePhone,
"mongoId": mongoId,
"multibyte": multibyte,
"numeric": numeric,
"partial": partial,
"port": port,
"postalCode": postalCode,
"required": required,
"slug": slug,
"surrogatePair": surrogatePair,
"uppercase": uppercase,
"url": url,
"variableWidth": variableWidth,
"whiteListed": whiteListed,
},
"validate": validate,
"validatorVisitor": validatorVisitor,
}
`;
5 changes: 5 additions & 0 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe("Index", () => {
it("Should export member properly", () => {
expect(require("../src")).toMatchSnapshot()
})
})

0 comments on commit bcb0c45

Please sign in to comment.