Skip to content

Instantly share code, notes, and snippets.

@splhack
Created December 24, 2016 17:04
Show Gist options
  • Select an option

  • Save splhack/4fcfb2b25c07755a9853ef6784804c48 to your computer and use it in GitHub Desktop.

Select an option

Save splhack/4fcfb2b25c07755a9853ef6784804c48 to your computer and use it in GitHub Desktop.
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var Yoga = Yoga || require('../src/Yoga.js');
describe('YGStyleTest', () => {
it('absolute_layout_width_height_start_top', () => {
const node0 = Yoga.nodeNew();
const node1 = Yoga.nodeNew();
expect(Yoga.nodeIsDirty(node0)).toBeFalsy();
Yoga.nodeCopyStyle(node0, node1);
expect(Yoga.nodeIsDirty(node0)).toBeFalsy();
Yoga.nodeFree(node0);
Yoga.nodeFree(node1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment