Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript Reference] Attempt to sync netflix typescript changes into working branch (NO MERGE) #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ lib
.xmark.*

.next

__snapshots__
27 changes: 27 additions & 0 deletions __tests__/clonetest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Link.react.test.js
import React from 'react';
import {shallow} from 'enzyme';
import Clone from '../components/headers/clone.js';
import renderer from 'react-test-renderer';

test('render component', () => {
const component = renderer.create(
<Clone />,
);
let tree = component.toJSON();
expect(tree).toMatchSnapshot();
});

test('debounce onclick', () => {
let wrapper = shallow(<Clone/>);
const cloneMock = jest.fn();
wrapper.instance().clone = cloneMock;
expect(wrapper.find('span').hasClass('disabled')).toEqual(false);
wrapper.instance().onClick();
wrapper.instance().onClick();
wrapper.instance().onClick();
wrapper.instance().onClick();
wrapper.instance().onClick();
expect(wrapper.find('span').hasClass('disabled')).toEqual(true);
expect(cloneMock).toHaveBeenCalledTimes(1);
});
3 changes: 1 addition & 2 deletions __tests__/s3test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// @flow
const s3Service = require("./../backend/content-providers/s3/s3");
jest.mock("aws-sdk/clients/s3");
const awsMock = require("aws-sdk/clients/s3");

const s3Service = require("./../backend/content-providers/s3/s3");

describe("Test S3 service", () => {
test("getObject returns notebook content", done => {
awsMock.prototype.getObject = function(params, cb) {
Expand Down
35 changes: 0 additions & 35 deletions babel.config.js

This file was deleted.

144 changes: 0 additions & 144 deletions backend/config.js

This file was deleted.

56 changes: 0 additions & 56 deletions backend/content-providers/gcs/contents.js

This file was deleted.

36 changes: 0 additions & 36 deletions backend/content-providers/gcs/files.js

This file was deleted.

Loading